[cfe-commits] r121277 - in /cfe/trunk: include/clang/Basic/arm_neon.td lib/CodeGen/CGBuiltin.cpp
Bob Wilson
bob.wilson at apple.com
Wed Dec 8 12:09:54 PST 2010
Author: bwilson
Date: Wed Dec 8 14:09:54 2010
New Revision: 121277
URL: http://llvm.org/viewvc/llvm-project?rev=121277&view=rev
Log:
Stop using clang builtins for Neon vaba intrinsics.
Modified:
cfe/trunk/include/clang/Basic/arm_neon.td
cfe/trunk/lib/CodeGen/CGBuiltin.cpp
Modified: cfe/trunk/include/clang/Basic/arm_neon.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/arm_neon.td?rev=121277&r1=121276&r2=121277&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/arm_neon.td (original)
+++ cfe/trunk/include/clang/Basic/arm_neon.td Wed Dec 8 14:09:54 2010
@@ -62,6 +62,7 @@
def OP_REV32 : Op;
def OP_REV16 : Op;
def OP_REINT : Op;
+def OP_ABA : Op;
class Inst <string n, string p, string t, Op o> {
string Name = n;
@@ -167,7 +168,7 @@
// E.3.5 Absolute Difference
def VABD : SInst<"vabd", "ddd", "csiUcUsUifQcQsQiQUcQUsQUiQf">;
def VABDL : SInst<"vabdl", "wdd", "csiUcUsUi">;
-def VABA : SInst<"vaba", "dddd", "csiUcUsUiQcQsQiQUcQUsQUi">;
+def VABA : Inst<"vaba", "dddd", "csiUcUsUiQcQsQiQUcQUsQUi", OP_ABA>;
def VABAL : SInst<"vabal", "wwdd", "csiUcUsUi">;
////////////////////////////////////////////////////////////////////////////////
Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBuiltin.cpp?rev=121277&r1=121276&r2=121277&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGBuiltin.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGBuiltin.cpp Wed Dec 8 14:09:54 2010
@@ -1181,16 +1181,6 @@
unsigned Int;
switch (BuiltinID) {
default: return 0;
- case ARM::BI__builtin_neon_vaba_v:
- case ARM::BI__builtin_neon_vabaq_v: {
- Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
- SmallVector<Value*, 2> Args;
- Args.push_back(Ops[1]);
- Args.push_back(Ops[2]);
- Int = usgn ? Intrinsic::arm_neon_vabdu : Intrinsic::arm_neon_vabds;
- Ops[1] = EmitNeonCall(CGM.getIntrinsic(Int, &Ty, 1), Args, "vaba");
- return Builder.CreateAdd(Ops[0], Ops[1], "vaba");
- }
case ARM::BI__builtin_neon_vabal_v: {
Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
SmallVector<Value*, 2> Args;
More information about the cfe-commits
mailing list