summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGBuiltin.cpp
diff options
context:
space:
mode:
authorJoey Gouly <joey.gouly@arm.com>2013-10-02 10:00:18 +0000
committerJoey Gouly <joey.gouly@arm.com>2013-10-02 10:00:18 +0000
commit75987a65f393b13dbe63bef03500dfac035c3e10 (patch)
tree2bf3c5c0bbfdd9007d1eb81b5e676a1bed444302 /clang/lib/CodeGen/CGBuiltin.cpp
parent9fe6a3b9b1c98b76045782ad66e607d4c914d65a (diff)
downloadbcm5719-llvm-75987a65f393b13dbe63bef03500dfac035c3e10.tar.gz
bcm5719-llvm-75987a65f393b13dbe63bef03500dfac035c3e10.zip
[ARM] Add a builtin to allow you to use the 'sevl' instruction.
llvm-svn: 191816
Diffstat (limited to 'clang/lib/CodeGen/CGBuiltin.cpp')
-rw-r--r--clang/lib/CodeGen/CGBuiltin.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp
index 450b5f0c82f..a6911bab348 100644
--- a/clang/lib/CodeGen/CGBuiltin.cpp
+++ b/clang/lib/CodeGen/CGBuiltin.cpp
@@ -2372,6 +2372,11 @@ Value *CodeGenFunction::EmitARMBuiltinExpr(unsigned BuiltinID,
return Builder.CreateCall(F);
}
+ if (BuiltinID == ARM::BI__builtin_arm_sevl) {
+ Function *F = CGM.getIntrinsic(Intrinsic::arm_sevl);
+ return Builder.CreateCall(F);
+ }
+
// CRC32
Intrinsic::ID CRCIntrinsicID = Intrinsic::not_intrinsic;
switch (BuiltinID) {
OpenPOWER on IntegriCloud