Displaying 7 results from an estimated 7 matches for "aligntype".
2009 Sep 30
5
[LLVMdev] long double type on ARM
...ould see the error message on llc processing.
> llvm-gcc -emit-llvm ./od.c -c -o ./od.bc -other-options...
> llc -march=arm ./od.bc -f -o ./od.s
llc: /home/jaykang10/HardDisk2/Projects/LLVM/src/llvm-2.5/lib/Target/TargetData.cpp:305: unsigned int llvm::TargetData::getAlignmentInfo(llvm::AlignTypeEnum, uint32_t, bool, const llvm::Type*) const: Assertion `AlignType == VECTOR_ALIGN && "Unknown alignment type!"' failed.
The problem was that
when i converted 'od' source code to llvm bitcode, long double type of 'od' source code was changed to x86_fp80 type...
2009 Sep 30
0
[LLVMdev] long double type on ARM
...processing.
>
> > llvm-gcc -emit-llvm ./od.c -c -o ./od.bc -other-options...
> > llc -march=arm ./od.bc -f -o ./od.s
> llc: /home/jaykang10/HardDisk2/Projects/LLVM/src/llvm-2.5/lib/Target/
> TargetData.cpp:305: unsigned int llvm::TargetData::getAlignmentInfo
> (llvm::AlignTypeEnum, uint32_t, bool, const llvm::Type*) const:
> Assertion `AlignType == VECTOR_ALIGN && "Unknown alignment type!"'
> failed.
>
> The problem was that
> when i converted 'od' source code to llvm bitcode, long double type
> of 'od' source...
2009 Sep 30
0
[LLVMdev] long double type on ARM
...ssage on llc processing.
> > llvm-gcc -emit-llvm ./od.c -c -o ./od.bc /-other-options.../
> > llc -march=arm ./od.bc -f -o ./od.s
> llc:
> /home/jaykang10/HardDisk2/Projects/LLVM/src/llvm-2.5/lib/Target/TargetData.cpp:305:
> unsigned int llvm::TargetData::getAlignmentInfo(llvm::AlignTypeEnum,
> uint32_t, bool, const llvm::Type*) const: Assertion `AlignType ==
> VECTOR_ALIGN && "Unknown alignment type!"' failed.
> The problem was that
> when i converted 'od' source code to llvm bitcode, long double type of
> 'od' source code was c...
2009 Sep 30
2
[LLVMdev] long double type on ARM
...ould see the error message on llc processing.
> llvm-gcc -emit-llvm ./od.c -c -o ./od.bc -other-options...
> llc -march=arm ./od.bc -f -o ./od.s
llc: /home/jaykang10/HardDisk2/Projects/LLVM/src/llvm-2.5/lib/Target/TargetData.cpp:305: unsigned int llvm::TargetData::getAlignmentInfo(llvm::AlignTypeEnum, uint32_t, bool, const llvm::Type*) const: Assertion `AlignType == VECTOR_ALIGN && "Unknown alignment type!"' failed.
The problem was that
when i converted 'od' source code to llvm bitcode, long double type of 'od' source code was changed to x86_fp80 type...
2009 Sep 30
0
[LLVMdev] long double type on ARM
...t;> > llvm-gcc -emit-llvm ./od.c -c -o ./od.bc -other-options...
>> > llc -march=arm ./od.bc -f -o ./od.s
>> llc: /home/jaykang10/HardDisk2/Projects/LLVM/src/llvm-2.5/lib/
>> Target/TargetData.cpp:305: unsigned int
>> llvm::TargetData::getAlignmentInfo(llvm::AlignTypeEnum, uint32_t,
>> bool, const llvm::Type*) const: Assertion `AlignType ==
>> VECTOR_ALIGN && "Unknown alignment type!"' failed.
>>
>> The problem was that
>> when i converted 'od' source code to llvm bitcode, long double type
>>...
2010 Mar 15
0
[LLVMdev] [patch] Writing ConstantUnions
...their entries
+ for (UnionType::element_iterator i = UnTy->element_begin(),
+ e = UnTy->element_end(); i != e; ++i) {
+ Align = std::max(Align, (unsigned)getAlignment(*i, abi_or_pref));
+ }
+ return Align;
+ }
case Type::IntegerTyID:
case Type::VoidTyID:
AlignType = INTEGER_ALIGN;
@@ -600,6 +620,11 @@
// Update Ty to refer to current element
Ty = STy->getElementType(FieldNo);
+ } else if (const UnionType *UnTy = dyn_cast<UnionType>(*TI)) {
+ unsigned FieldNo = cast<ConstantInt>(Indices[CurIDX])->getZExtValue();
+
+...
2010 Mar 15
3
[LLVMdev] [patch] Writing ConstantUnions
Hello,
I noticed a bit of a gap in the current code for unions: a
ConstantUnion cannot be written out to .ll.
Hopefully I'm not stepping on Talin's toes by posting this, it's a
fairly straightforward adaptation of the code for structs just above.
Tim.
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
--------------