On Nov 12, 2006, at 6:48 PM, Reid Spencer wrote:

Attached is the llvm-gcc4 patch to correspond with the new CAST
instructions in LLVM.

For Review Only.  PLEASE DO NOT COMMIT THIS!

This patch looks fine: the uses of getCast are safe, because the CFE never has types that disagree with what the FE thinks they are.  I don't think that this is used though:

@@ -147,6 +147,11 @@
 }

 

 namespace {
+  /// GetCast - This helper function is used to get the correct kind of a 
+  /// cast given a tree _expression_
+  ConvertInst* GetCast(Value* V, const Type* Ty, tree expr) {
+  }
+
   /// FunctionPrologArgumentConversion - This helper class is driven by the ABI
   /// definition for this target to figure out how to retrieve arguments from
   /// the stack/regs coming into a function and store them into an appropriate

-Chris
_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to