Displaying 6 results from an estimated 6 matches for "getfnvaluebyid".
2012 Sep 26
0
[LLVMdev] [PATCH / PROPOSAL] bitcode encoding that is ~15% smaller for large bitcode files...
...> InstructionList.clear();
> unsigned ModuleValueListSize = ValueList.size();
...
> @@ -2260,8 +2275,10 @@ bool BitcodeReader::ParseFunctionBody(Function *F) {
> }
> else {
> BasicBlock *FalseDest = getBasicBlock(Record[1]);
> - Value *Cond = getFnValueByID(Record[2], Type::getInt1Ty(Context));
> - if (FalseDest == 0 || Cond == 0)
> + Value *Cond;
> + if (getValueConst(Record, 2,
> + NextValueNo, Type::getInt1Ty(Context), Cond) ||
> + FalseDest == 0 || Cond == 0)
This seems rathe...
2012 Sep 26
9
[LLVMdev] [PATCH / PROPOSAL] bitcode encoding that is ~15% smaller for large bitcode files...
Hi all,
I've been looking into how to make llvm bitcode files smaller. There is
one simple change that appears to shrink linked bitcode files by about 15%.
See this spreadsheet for some rough data:
https://docs.google.com/spreadsheet/ccc?key=0AjRrJHQc4_bddEtJdjdIek5fMDdIdFFIZldZXzdWa0E
The change is in how operand ids are encoded in bitcode files. Rather than
use an "absolute
2008 Aug 28
1
[LLVMdev] instruction CE_GEP
Hi all,
I have a question with the "getelemptr" instruction.
E.g.: I have some GEP instructions in my program.
Some look like:
<INST_GEP op0=26 op1=64 op2=429/>
.
<INST_GEP op0=341 op1=64 op2=101 op3=499 op4=0/>
The first instruction above in assembly file:
%tmp60 = getelementptr [512 x i32]* @weights, i32 0, i32 %k.3.ph
Ok, we see it all:
Index of @weights in value
2010 Oct 25
5
[LLVMdev] llvm-dis fails to parse bytecode emitted by clang
...x00000039cf430265 gsignal + 53
4 libc.so.6 0x00000039cf431d10 abort + 272
5 libc.so.6 0x00000039cf4296e6 __assert_fail + 246
6 llvm-dis 0x000000000051005b
llvm::BitcodeReaderValueList::getValueFwdRef(unsigned int, llvm::Type
const*) + 173
7 llvm-dis 0x000000000052e574
llvm::BitcodeReader::getFnValueByID(unsigned int, llvm::Type const*) +
42
8 llvm-dis 0x000000000051482b
llvm::BitcodeReader::ParseFunctionBody(llvm::Function*) + 11371
9 llvm-dis 0x000000000051574a
llvm::BitcodeReader::materializeFunction(llvm::Function*,
std::string*) + 284
10 llvm-dis 0x000000000050ddca
llvm::BitcodeReader:...
2010 Oct 26
0
[LLVMdev] llvm-dis fails to parse bytecode emitted by clang
...4 libc.so.6 0x00000039cf431d10 abort + 272
> 5 libc.so.6 0x00000039cf4296e6 __assert_fail + 246
> 6 llvm-dis 0x000000000051005b
> llvm::BitcodeReaderValueList::getValueFwdRef(unsigned int, llvm::Type
> const*) + 173
> 7 llvm-dis 0x000000000052e574
> llvm::BitcodeReader::getFnValueByID(unsigned int, llvm::Type const*) +
> 42
> 8 llvm-dis 0x000000000051482b
> llvm::BitcodeReader::ParseFunctionBody(llvm::Function*) + 11371
> 9 llvm-dis 0x000000000051574a
> llvm::BitcodeReader::materializeFunction(llvm::Function*,
> std::string*) + 284
> 10 llvm-dis 0x00...
2010 Oct 26
2
[LLVMdev] llvm-dis fails to parse bytecode emitted by clang
...9cf431d10 abort + 272
>> 5 libc.so.6 0x00000039cf4296e6 __assert_fail + 246
>> 6 llvm-dis 0x000000000051005b
>> llvm::BitcodeReaderValueList::getValueFwdRef(unsigned int, llvm::Type
>> const*) + 173
>> 7 llvm-dis 0x000000000052e574
>> llvm::BitcodeReader::getFnValueByID(unsigned int, llvm::Type const*) +
>> 42
>> 8 llvm-dis 0x000000000051482b
>> llvm::BitcodeReader::ParseFunctionBody(llvm::Function*) + 11371
>> 9 llvm-dis 0x000000000051574a
>> llvm::BitcodeReader::materializeFunction(llvm::Function*,
>> std::string*) + 284...