[llvm-commits] [dragonegg] r127093 - /dragonegg/trunk/llvm-convert.cpp
Duncan Sands
baldrick at free.fr
Sat Mar 5 10:21:08 PST 2011
Author: baldrick
Date: Sat Mar 5 12:21:08 2011
New Revision: 127093
URL: http://llvm.org/viewvc/llvm-project?rev=127093&view=rev
Log:
Comments on the various possible gimple constants.
Modified:
dragonegg/trunk/llvm-convert.cpp
Modified: dragonegg/trunk/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/llvm-convert.cpp?rev=127093&r1=127092&r2=127093&view=diff
==============================================================================
--- dragonegg/trunk/llvm-convert.cpp (original)
+++ dragonegg/trunk/llvm-convert.cpp Sat Mar 5 12:21:08 2011
@@ -5886,6 +5886,8 @@
case REAL_CST:
C = TreeConstantToLLVM::ConvertREAL_CST(reg);
break;
+ //case FIXED_CST: // Fixed point constant - not yet supported.
+ //case STRING_CST: // Allowed by is_gimple_constant, but no known testcase.
case COMPLEX_CST:
C = TreeConstantToLLVM::ConvertCOMPLEX_CST(reg);
break;
@@ -5893,6 +5895,8 @@
C = TreeConstantToLLVM::ConvertVECTOR_CST(reg);
break;
case CONSTRUCTOR:
+ // Vector constant constructors are gimple invariant. See GCC testcase
+ // pr34856.c.
C = TreeConstantToLLVM::ConvertCONSTRUCTOR(reg);
break;
}
More information about the llvm-commits
mailing list