[llvm-commits] [125666] Add support for the PADDQ builtin.
bwendlin at apple.com
bwendlin at apple.com
Mon Apr 2 23:12:18 PDT 2007
Revision: 125666
Author: bwendlin
Date: 2007-04-02 23:12:17 -0700 (Mon, 02 Apr 2007)
Log Message:
-----------
Add support for the PADDQ builtin.
Modified Paths:
--------------
apple-local/branches/llvm/gcc/config/i386/llvm-i386.cpp
Modified: apple-local/branches/llvm/gcc/config/i386/llvm-i386.cpp
===================================================================
--- apple-local/branches/llvm/gcc/config/i386/llvm-i386.cpp 2007-04-03 03:01:10 UTC (rev 125665)
+++ apple-local/branches/llvm/gcc/config/i386/llvm-i386.cpp 2007-04-03 06:12:17 UTC (rev 125666)
@@ -34,7 +34,9 @@
#include "toplev.h"
}
-/* TargetIntrinsicCastResult - This function just provides a frequently * used sequence for use inside TargetIntrinsicLower. */
+/* TargetIntrinsicCastResult - This function just provides a frequently used
+ * sequence for use inside TargetIntrinsicLower.
+ */
static void TargetIntrinsicCastResult(Value *&Result, const Type *ResultType,
bool ResIsSigned, bool ExpIsSigned,
BasicBlock *CurBB) {
@@ -43,14 +45,16 @@
Result = CastInst::create(opcode, Result, ResultType, "tmp", CurBB);
}
-/* IntrinsicOpIsSigned - This function determines if a given operand * to the intrinsic is signed or not. */
+/* IntrinsicOpIsSigned - This function determines if a given operand to the
+ * intrinsic is signed or not.
+ */
static bool IntrinsicOpIsSigned(SmallVector<tree, 8> &Args, unsigned OpNum) {
return !TYPE_UNSIGNED(TREE_TYPE(Args[OpNum]));
}
-/* TargetIntrinsicLower - For builtins that we want to expand to normal
- * LLVM code, emit the code now. If we can handle the code, this macro should
- * emit the code, return true.
+/* TargetIntrinsicLower - For builtins that we want to expand to normal LLVM
+ * code, emit the code now. If we can handle the code, this macro should emit
+ * the code, return true.
*/
bool TreeToLLVM::TargetIntrinsicLower(tree exp,
unsigned FnCode,
@@ -69,6 +73,7 @@
case IX86_BUILTIN_PADDB:
case IX86_BUILTIN_PADDW:
case IX86_BUILTIN_PADDD:
+ case IX86_BUILTIN_PADDQ:
case IX86_BUILTIN_PADDB128:
case IX86_BUILTIN_PADDW128:
case IX86_BUILTIN_PADDD128:
More information about the llvm-commits
mailing list