search for: elementty

Displaying 4 results from an estimated 4 matches for "elementty".

Did you mean: elementy
2009 Jan 09
2
[LLVMdev] RFC: Store alignment should be LValue alignment, not source alignment
...SER_ALIGN(exp) || Alignment < (unsigned)DECL_ALIGN_UNIT(exp)) + Alignment = DECL_ALIGN_UNIT(exp); + } + + return LValue(BitCastToType(Decl, PTy), Alignment); } LValue TreeToLLVM::EmitLV_ARRAY_REF(tree exp) { @@ -5932,22 +5950,23 @@ LValue TreeToLLVM::EmitLV_ARRAY_REF(tree // of ElementTy in the case of ARRAY_RANGE_REF. tree Array = TREE_OPERAND(exp, 0); - tree ArrayType = TREE_TYPE(Array); + tree ArrayTreeType = TREE_TYPE(Array); tree Index = TREE_OPERAND(exp, 1); tree IndexType = TREE_TYPE(Index); - tree ElementType = TREE_TYPE(ArrayType); + tree ElementType = TRE...
2009 Jan 09
0
[LLVMdev] RFC: Store alignment should be LValue alignment, not source alignment
...AddrLV.isBitfield() && "Arrays cannot be > bitfields!"); > ArrayAddr = ArrayAddrLV.Ptr; > + ArrayAlign = ArrayAddrLV.Alignment; Couldn't this be expr_align(Array)? > + const Type *ATy = cast<PointerType>(ArrayAddr->getType())- > >getElementType(); > + const Type *ElementTy = cast<ArrayType>(ATy)->getElementType(); > + unsigned Alignment = MinAlign(ArrayAlign, > TD.getABITypeSize(ElementTy)); Why these manipulations? These happens several more times below. > @@ -6028,8 +6063,9 @@ static unsigned getCompone...
2011 Feb 04
3
[LLVMdev] ConstantBuilder proposal
...first element RandomAccessIterator ArgEnd) { ///< The elements of the array return GetArray(Ty, &ArgBegin[0], ArgEnd - ArgBegin); } /// GetArrayOf - return a constant array given an element type and a vector /// of elements. static Constant *GetArrayOf( const Type *ElementTy, ///< The type of the array elements const std::vector<Constant*> &V) { ///< The elements of the array return GetArray(ArrayType::get(ElementTy, (uint64_t) V.size()), V); } /// GetArrayOf - return a constant array given an element type and a POD /// arra...
2016 Sep 08
2
PtrToInt in array initializer
Hello all, I'm trying to use the C API to initialize a global integer array with the address of another global, but ptrtoint yields an array instead of an integer. You can see a short program demonstrating the issue here (tested with LLVM 3.8.1 and 4.0.0svn-r280709 on Linux x86_64): https://raw.githubusercontent.com/dobyrch/dbc/master/llvm_bug/example.c Note that the use of ptrtoint in the