Added support for the Builtin attribute.

The Builtin attribute is an attribute that can be placed on function call site that signal that even though a function is declared as being a builtin,

rdar://problem/13727199

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185049 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Michael Gottesman
2013-06-27 00:25:01 +00:00
parent 9367c79e62
commit 2253a2f52f
15 changed files with 154 additions and 23 deletions

View File

@ -1940,7 +1940,7 @@ LibCallSimplifier::~LibCallSimplifier() {
}
Value *LibCallSimplifier::optimizeCall(CallInst *CI) {
if (CI->hasFnAttr(Attribute::NoBuiltin)) return 0;
if (CI->isNoBuiltin()) return 0;
return Impl->optimizeCall(CI);
}