[AArch64] Fix D19098 fallout.

The intrinsic is now called llvm.thread.pointer, not
llvm.aarch64.thread.pointer.  Also, the code handling it in CGBuiltin.cpp
is dead - it's already covered by GCCBuiltin.  Remove it.

Differential Revision: http://reviews.llvm.org/D19099

llvm-svn: 266817
This commit is contained in:
Marcin Koscielnicki 2016-04-19 20:51:00 +00:00
parent 0536ec0242
commit 4005070e1b
2 changed files with 1 additions and 6 deletions

View File

@ -4647,11 +4647,6 @@ Value *CodeGenFunction::EmitAArch64BuiltinExpr(unsigned BuiltinID,
return Builder.CreateCall(F);
}
if (BuiltinID == AArch64::BI__builtin_thread_pointer) {
Function *F = CGM.getIntrinsic(Intrinsic::aarch64_thread_pointer);
return Builder.CreateCall(F);
}
// CRC32
Intrinsic::ID CRCIntrinsicID = Intrinsic::not_intrinsic;
switch (BuiltinID) {

View File

@ -7,7 +7,7 @@ void f0(void *a, void *b) {
void *tp (void) {
return __builtin_thread_pointer ();
// CHECK: call {{.*}} @llvm.aarch64.thread.pointer()
// CHECK: call {{.*}} @llvm.thread.pointer()
}
// CHECK: call {{.*}} @llvm.aarch64.rbit.i32(i32 %a)