From 2253a2f52f3c46ae75cd05f5885acb987bd1d6b6 Mon Sep 17 00:00:00 2001 From: Michael Gottesman Date: Thu, 27 Jun 2013 00:25:01 +0000 Subject: 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 --- test/Transforms/InstCombine/simplify-libcalls.ll | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test/Transforms/InstCombine') diff --git a/test/Transforms/InstCombine/simplify-libcalls.ll b/test/Transforms/InstCombine/simplify-libcalls.ll index 4f3a506..ad29a44 100644 --- a/test/Transforms/InstCombine/simplify-libcalls.ll +++ b/test/Transforms/InstCombine/simplify-libcalls.ll @@ -130,3 +130,15 @@ define i32 @MemCpy() { } declare void @llvm.memcpy.p0i8.p0i8.i32(i8* nocapture, i8* nocapture, i32, i32, i1) nounwind + +declare i32 @strcmp(i8*, i8*) #0 + +define void @test9(i8* %x) { +; CHECK: @test9 +; CHECK-NOT: strcmp + %y = call i32 @strcmp(i8* %x, i8* %x) #1 + ret void +} + +attributes #0 = { nobuiltin } +attributes #1 = { builtin } -- cgit v1.1