[llvm-commits] [llvm-gcc-4.2] r116677 - /llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386-target.h
Bill Wendling
isanbard at gmail.com
Sat Oct 16 16:05:41 PDT 2010
Author: void
Date: Sat Oct 16 18:05:41 2010
New Revision: 116677
URL: http://llvm.org/viewvc/llvm-project?rev=116677&view=rev
Log:
Tidying up. No functionality change.
Modified:
llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386-target.h
Modified: llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386-target.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386-target.h?rev=116677&r1=116676&r2=116677&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386-target.h (original)
+++ llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386-target.h Sat Oct 16 18:05:41 2010
@@ -28,20 +28,20 @@
for these rather than <2 x i32>. This is an utter hack, but
there is no counterpart to x86mmx in the gcc type system, and trying to
add it is a can of worms. */
-#define LLVM_IS_DECL_MMX_REGISTER(decl) \
- (TARGET_MMX && \
+#define LLVM_IS_DECL_MMX_REGISTER(decl) \
+ (TARGET_MMX && \
TREE_CODE(decl) == VAR_DECL && DECL_REGISTER(decl) && DECL_NAME(decl) && \
strncmp("%mm", IDENTIFIER_POINTER(DECL_NAME(decl)), 3)==0)
-/* Similarly, parameters of MMX vector type <2 x i32>, <4 x i16>, <2 x i32>
- must be changed to m86mmx at the last minute. <2 x f32> is unsupported;
+/* Similarly, parameters of MMX vector type <8 x i8>, <4 x i16>, <2 x i32>
+ must be changed to x86mmx at the last minute. <2 x f32> is unsupported;
it is filtered out here to avoid crashes in the gcc testsuite. */
-#define LLVM_ADJUST_MMX_PARAMETER_TYPE(LLVMTy) \
- ((TARGET_MMX && \
- LLVMTy->isVectorTy() && LLVMTy->getPrimitiveSizeInBits()==64 && \
- dyn_cast<VectorType>(LLVMTy)->getElementType()->isIntegerTy() && \
- LLVMTy->getScalarSizeInBits() !=64) ? \
- Type::getX86_MMXTy(Context) : LLVMTy)
+#define LLVM_ADJUST_MMX_PARAMETER_TYPE(LLVMTy) \
+ ((TARGET_MMX && \
+ LLVMTy->isVectorTy() && LLVMTy->getPrimitiveSizeInBits()==64 && \
+ cast<VectorType>(LLVMTy)->getElementType()->isIntegerTy() && \
+ LLVMTy->getScalarSizeInBits() !=64) ? \
+ Type::getX86_MMXTy(Context) : LLVMTy)
/* LLVM specific stuff for supporting calling convention output */
#define TARGET_ADJUST_LLVM_CC(CC, type) \
More information about the llvm-commits
mailing list