search for: getoffsetinbits

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

2010 Oct 26
2
[LLVMdev] StructType member offset
...E = STy->element_end(); I != E; ++I) { usigned size =I->get()->getScalarSizeInBits(); //often returns 0, not what I need } Basically I want to add up the sizes of the different members to calculate the offset (which I want to compare to DIType::getOffsetInBits()). Or if there is a direct way to get the offset of a struct member without adding their sizes that'd be even better. Thx, Alex
2010 Nov 03
0
[LLVMdev] StructType member offset
...=I->get()->getScalarSizeInBits(); //often > > returns 0, not what I need > > } > > > > Basically I want to add up the sizes of the different members to > > calculate the offset (which I want to compare to > > DIType::getOffsetInBits()). Or if there is a direct way to get the > > offset of a struct member without adding their sizes that'd be even better. > > > > Thx, > > Alex > > _______________________________________________ > > LLVM Developers mailing list...
2010 Oct 26
0
[LLVMdev] llvm-dis fails to parse bytecode emitted by clang
Hi, For the first problem, try clang -S -emit-llvm test.c -o test.ll you should get the llvm IR and you don't need to use llvm-dis. Although I have tried your example with the exact commands and source code you posted and it worked just fine for me. I also use clang and LLVM 2.8 compiled from sources. For the second problem, suppress -emit-llvm, since you want the executable, not an object
2010 Oct 25
5
[LLVMdev] llvm-dis fails to parse bytecode emitted by clang
Hi, I am trying to generate LLVM bytecode using CLANG and I ran into the following problem. If I run clang with the -emit-llvm option and then try to get a textual representation of the output using llvm-dis, the latter crashes because of a failed assertion in BitCodeReader.cpp, mentioning a "Type mismatch in value table" (the exact error message is appended at the end of this email).