Add CreateAlignmentAssumption to IRBuilder
authorHal Finkel <hfinkel@anl.gov>
Wed, 15 Oct 2014 23:44:22 +0000 (23:44 +0000)
committerHal Finkel <hfinkel@anl.gov>
Wed, 15 Oct 2014 23:44:22 +0000 (23:44 +0000)
commit6f814db8d7a842255629fa31ac8daea2e3627629
treecec73843985c10f5c36cef9de636b269af4c09cd
parent4285c1f8cc98a779d3733529ceadf3941c4b86d4
Add CreateAlignmentAssumption to IRBuilder

Clang CodeGen had a utility function for creating pointer alignment assumptions
using the @llvm.assume intrinsic. This functionality will also be needed by the
inliner (to preserve function-argument alignment attributes when inlining), so
this moves the utility function into IRBuilder where it can be used both by
Clang CodeGen and also other LLVM-level code.

llvm-svn: 219875
llvm/include/llvm/IR/IRBuilder.h
llvm/lib/IR/IRBuilder.cpp