OSDN Git Service

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)
commit76ce614af7d36fa1134a3db6a0c46c47f1eb1a24
tree73d4089cecb7a7b46161f400dea3c25d50a8ccc5
parentfb9d61a8d62e75a4a99b3fafd406699e08219775
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219875 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/IRBuilder.h
lib/IR/IRBuilder.cpp