[llvm-commits] [dragonegg] r135472 - /dragonegg/trunk/src/Convert.cpp
Jay Foad
jay.foad at gmail.com
Tue Jul 19 01:43:11 PDT 2011
Author: foad
Date: Tue Jul 19 03:43:11 2011
New Revision: 135472
URL: http://llvm.org/viewvc/llvm-project?rev=135472&view=rev
Log:
Update for change in Intrinsic::getDeclaration API.
Modified:
dragonegg/trunk/src/Convert.cpp
Modified: dragonegg/trunk/src/Convert.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Convert.cpp?rev=135472&r1=135471&r2=135472&view=diff
==============================================================================
--- dragonegg/trunk/src/Convert.cpp (original)
+++ dragonegg/trunk/src/Convert.cpp Tue Jul 19 03:43:11 2011
@@ -426,7 +426,7 @@
Type *ArgTypes[3] = {SBP, SBP, IntPtr };
Builder.CreateCall(Intrinsic::getDeclaration(TheModule,
Intrinsic::memcpy,
- ArgTypes, 3), Ops);
+ ArgTypes), Ops);
AI->setName(NameStack.back());
}
@@ -1671,7 +1671,7 @@
Type *ArgTypes[3] = { SBP, SBP, IntPtr };
Builder.CreateCall(Intrinsic::getDeclaration(TheModule, Intrinsic::memcpy,
- ArgTypes, 3), Ops);
+ ArgTypes), Ops);
return Ops[0];
}
@@ -1689,7 +1689,7 @@
Type *ArgTypes[3] = { SBP, SBP, IntPtr };
Builder.CreateCall(Intrinsic::getDeclaration(TheModule, Intrinsic::memmove,
- ArgTypes, 3), Ops);
+ ArgTypes), Ops);
return Ops[0];
}
@@ -1707,7 +1707,7 @@
Type *ArgTypes[2] = { SBP, IntPtr };
Builder.CreateCall(Intrinsic::getDeclaration(TheModule, Intrinsic::memset,
- ArgTypes, 2), Ops);
+ ArgTypes), Ops);
return Ops[0];
}
@@ -3739,9 +3739,7 @@
#endif
Value *Result =
- Builder.CreateCall(Intrinsic::getDeclaration(TheModule, id,
- Ty, 2),
- C);
+ Builder.CreateCall(Intrinsic::getDeclaration(TheModule, id, Ty), C);
// The gcc builtins are also full memory barriers.
// FIXME: __sync_lock_test_and_set and __sync_lock_release require less.
@@ -3787,7 +3785,7 @@
Value *Result =
Builder.CreateCall(Intrinsic::getDeclaration(TheModule,
Intrinsic::atomic_cmp_swap,
- Ty, 2), Ops);
+ Ty), Ops);
// The gcc builtins are also full memory barriers.
// FIXME: __sync_lock_test_and_set and __sync_lock_release require less.
@@ -3949,8 +3947,7 @@
Result = Builder.CreateCall(Intrinsic::getDeclaration(TheModule,
Intrinsic::objectsize,
- &Ty,
- 1),
+ Ty),
Args);
return true;
}
@@ -4349,7 +4346,7 @@
Result =
Builder.CreateCall(Intrinsic::getDeclaration(TheModule,
Intrinsic::atomic_load_add,
- Ty, 2),
+ Ty),
C);
// The gcc builtins are also full memory barriers.
@@ -4397,7 +4394,7 @@
Result =
Builder.CreateCall(Intrinsic::getDeclaration(TheModule,
Intrinsic::atomic_load_sub,
- Ty, 2),
+ Ty),
C);
// The gcc builtins are also full memory barriers.
@@ -4445,7 +4442,7 @@
Result =
Builder.CreateCall(Intrinsic::getDeclaration(TheModule,
Intrinsic::atomic_load_or,
- Ty, 2),
+ Ty),
C);
// The gcc builtins are also full memory barriers.
@@ -4493,7 +4490,7 @@
Result =
Builder.CreateCall(Intrinsic::getDeclaration(TheModule,
Intrinsic::atomic_load_and,
- Ty, 2),
+ Ty),
C);
// The gcc builtins are also full memory barriers.
@@ -4541,7 +4538,7 @@
Result =
Builder.CreateCall(Intrinsic::getDeclaration(TheModule,
Intrinsic::atomic_load_xor,
- Ty, 2),
+ Ty),
C);
// The gcc builtins are also full memory barriers.
@@ -4589,7 +4586,7 @@
Result =
Builder.CreateCall(Intrinsic::getDeclaration(TheModule,
Intrinsic::atomic_load_nand,
- Ty, 2),
+ Ty),
C);
// The gcc builtins are also full memory barriers.
@@ -4694,7 +4691,7 @@
// by passing it as the 3rd and 4th parameters. This isn't needed for
// most intrinsics, but is needed for ctpop, cttz, ctlz.
Type *Ty = InVal->getType();
- Result = Builder.CreateCall(Intrinsic::getDeclaration(TheModule, Id, &Ty, 1),
+ Result = Builder.CreateCall(Intrinsic::getDeclaration(TheModule, Id, Ty),
InVal);
return true;
}
@@ -4704,7 +4701,7 @@
Type* Ty = Amt->getType();
return Builder.CreateCall(Intrinsic::getDeclaration(TheModule,
- Intrinsic::sqrt, &Ty, 1),
+ Intrinsic::sqrt, Ty),
Amt);
}
@@ -4721,7 +4718,7 @@
Args.push_back(Val);
Args.push_back(Pow);
return Builder.CreateCall(Intrinsic::getDeclaration(TheModule,
- Intrinsic::powi, &Ty, 1),
+ Intrinsic::powi, Ty),
Args);
}
@@ -4737,7 +4734,7 @@
Args.push_back(Val);
Args.push_back(Pow);
return Builder.CreateCall(Intrinsic::getDeclaration(TheModule,
- Intrinsic::pow, &Ty, 1),
+ Intrinsic::pow, Ty),
Args);
}
@@ -5553,7 +5550,7 @@
Function *Fn = Intrinsic::getDeclaration(TheModule,
Intrinsic::ptr_annotation,
- &SBP, 1);
+ SBP);
// Get file and line number. FIXME: Should this be for the decl or the
// use. Is there a location info for the use?
More information about the llvm-commits
mailing list