search for: indirect_ref

Displaying 3 results from an estimated 3 matches for "indirect_ref".

2011 Jun 18
0
[LLVMdev] Make dragonegg work with gcc-4.6
...t;tree-flow.h" #include "tree-pass.h" -extern int get_pointer_alignment (tree exp, unsigned int max_align); +extern unsigned get_pointer_alignment (tree exp, unsigned int max_align); extern enum machine_mode reg_raw_mode[FIRST_PSEUDO_REGISTER]; } @@ -1306,9 +1306,11 @@ case INDIRECT_REF: LV = EmitLV_INDIRECT_REF(exp); break; +#if (GCC_MINOR < 6) case MISALIGNED_INDIRECT_REF: LV = EmitLV_MISALIGNED_INDIRECT_REF(exp); break; +#endif } // Check that the type of the lvalue is indeed that of a pointer to the tree @@ -4692,7 +4694,9 @@ case BUILT_IN_...
2007 Jul 17
0
[LLVMdev] Review: minor patches to llvm-gcc-4-2
...+ DECL_GIMPLE_FORMAL_TEMP_P (t) = 0; + } #else t = 0; #endif Index: gcc/fold-const.c =================================================================== --- gcc/fold-const.c (revision 39923) +++ gcc/fold-const.c (working copy) @@ -12942,11 +12942,11 @@ { if ((TREE_CODE (exp) == INDIRECT_REF || TREE_CODE (exp) == ARRAY_REF) - && TREE_CODE (TREE_TYPE (exp)) == INTEGER_TYPE && + && TREE_CODE (TREE_TYPE (exp)) == INTEGER_TYPE /* LLVM LOCAL begin */ #if ENABLE_LLVM /* LLVM extends ARRAY_REF to allow pointers to be the base value. */ - (...
2009 Jan 09
2
[LLVMdev] RFC: Store alignment should be LValue alignment, not source alignment
...PE(exp)) / 8); + } // Type Conversion. case VIEW_CONVERT_EXPR: return EmitLV_VIEW_CONVERT_EXPR(exp); @@ -1165,9 +1174,11 @@ LValue TreeToLLVM::EmitLV(tree exp) { case WITH_SIZE_EXPR: // The address is the address of the operand. return EmitLV(TREE_OPERAND(exp, 0)); - case INDIRECT_REF: + case INDIRECT_REF: { // The lvalue is just the address. - return Emit(TREE_OPERAND(exp, 0), 0); + tree Op = TREE_OPERAND(exp, 0); + return LValue(Emit(Op, 0), expr_align(Op) / 8); + } } } @@ -2290,7 +2301,7 @@ Value *TreeToLLVM::EmitLoadOfLValue(tree LValue LV = EmitL...