Displaying 14 results from an estimated 14 matches for "parsefunctionbody".
2012 Sep 26
0
[LLVMdev] [PATCH / PROPOSAL] bitcode encoding that is ~15% smaller for large bitcode files...
...basis then this wouldn't be
needed.
> +
> if (RememberAndSkipFunctionBody())
> return true;
> // For streaming bitcode, suspend parsing when we reach the function
> @@ -1901,8 +1909,15 @@ bool BitcodeReader::ParseMetadataAttachment() {
>
> /// ParseFunctionBody - Lazily parse the specified function body block.
> bool BitcodeReader::ParseFunctionBody(Function *F) {
> - if (Stream.EnterSubBlock(bitc::FUNCTION_BLOCK_ID))
> - return Error("Malformed block record");
> + if (FuncUseRelativeIDs[F]) {
> + if (Stream.EnterSubBlock...
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
2013 Jul 29
2
[LLVMdev] opt -O3 causes Assertion `New->getType() == getType() && "replaceAllUses of value with new value of different type!"' failed
...df
llvm::Value::replaceAllUsesWith(llvm::Value*) + 173
8 llc 0x00000000006b91e3
llvm::BitcodeReaderValueList::ResolveConstantForwardRefs() + 1127
9 llc 0x00000000006b9d97
llvm::BitcodeReader::ParseConstants() + 339
10 llc 0x00000000006bc634
llvm::BitcodeReader::ParseFunctionBody(llvm::Function*) + 594
11 llc 0x00000000006c2d63
llvm::BitcodeReader::Materialize(llvm::GlobalValue*, std::string*) +
411
12 llc 0x00000000006c290d
llvm::BitcodeReader::MaterializeModule(llvm::Module*, std::string*) +
195
13 llc 0x000000000144898e
llvm::Module::M...
2013 Aug 02
2
[LLVMdev] opt -O3 causes Assertion `New->getType() == getType() && "replaceAllUses of value with new value of different type!"' failed
...>> 8 llc 0x00000000006b91e3
>> llvm::BitcodeReaderValueList::ResolveConstantForwardRefs() + 1127
>> 9 llc 0x00000000006b9d97
>> llvm::BitcodeReader::ParseConstants() + 339
>> 10 llc 0x00000000006bc634
>> llvm::BitcodeReader::ParseFunctionBody(llvm::Function*) + 594
>> 11 llc 0x00000000006c2d63
>> llvm::BitcodeReader::Materialize(llvm::GlobalValue*, std::string*) +
>> 411
>> 12 llc 0x00000000006c290d
>> llvm::BitcodeReader::MaterializeModule(llvm::Module*, std::string*) +
>> 195...
2009 Oct 31
3
[LLVMdev] Something wrong with my libpthread.so
...df282c2fa __assert_fail + 234
6 lli 0x000000000085ece9
llvm::SmallVectorImpl<llvm::Instruction*>::operator[](unsigned int) + 77
7 lli 0x0000000000850ce0
llvm::BitcodeReader::ParseMetadataAttachment() + 448
8 lli 0x0000000000851043
llvm::BitcodeReader::ParseFunctionBody(llvm::Function*) + 677
9 lli 0x0000000000854b29
llvm::BitcodeReader::materializeFunction(llvm::Function*, std::string*) +
323
10 lli 0x0000000000c6a073
llvm::JIT::getPointerToFunction(llvm::Function*) + 421
11 lli 0x0000000000c68ae6
llvm::JIT::runFunction(llv...
2013 Aug 02
0
[LLVMdev] opt -O3 causes Assertion `New->getType() == getType() && "replaceAllUses of value with new value of different type!"' failed
...With(llvm::Value*) + 173
> 8 llc 0x00000000006b91e3
> llvm::BitcodeReaderValueList::ResolveConstantForwardRefs() + 1127
> 9 llc 0x00000000006b9d97
> llvm::BitcodeReader::ParseConstants() + 339
> 10 llc 0x00000000006bc634
> llvm::BitcodeReader::ParseFunctionBody(llvm::Function*) + 594
> 11 llc 0x00000000006c2d63
> llvm::BitcodeReader::Materialize(llvm::GlobalValue*, std::string*) +
> 411
> 12 llc 0x00000000006c290d
> llvm::BitcodeReader::MaterializeModule(llvm::Module*, std::string*) +
> 195
> 13 llc...
2010 Oct 25
5
[LLVMdev] llvm-dis fails to parse bytecode emitted by clang
...6 __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::materializeModule(std::string*) + 210
11 llvm-dis 0x00000000005171b2
llvm::ParseBitcodeFile(llvm::MemoryBuf...
2013 Aug 09
0
[LLVMdev] opt -O3 causes Assertion `New->getType() == getType() && "replaceAllUses of value with new value of different type!"' failed
...0x00000000006b91e3
>>> llvm::BitcodeReaderValueList::ResolveConstantForwardRefs() + 1127
>>> 9 llc 0x00000000006b9d97
>>> llvm::BitcodeReader::ParseConstants() + 339
>>> 10 llc 0x00000000006bc634
>>> llvm::BitcodeReader::ParseFunctionBody(llvm::Function*) + 594
>>> 11 llc 0x00000000006c2d63
>>> llvm::BitcodeReader::Materialize(llvm::GlobalValue*, std::string*) +
>>> 411
>>> 12 llc 0x00000000006c290d
>>> llvm::BitcodeReader::MaterializeModule(llvm::Module*, std::str...
2005 Aug 10
1
Issues with Canoo WebTest
...ser.java:909)
[canoo] at org.mozilla.javascript.Parser.expr(Parser.java:898)
[canoo] at org.mozilla.javascript.Parser.statementHelper
(Parser.java:791)
[canoo] at org.mozilla.javascript.Parser.statement
(Parser.java:387)
[canoo] at org.mozilla.javascript.Parser.parseFunctionBody
(Parser.java:167)
[canoo] at org.mozilla.javascript.Parser.function
(Parser.java:271)
[canoo] at org.mozilla.javascript.Parser.parse(Parser.java:121)
[canoo] at org.mozilla.javascript.Context.compile
(Context.java:2053)
[canoo] at org.mozilla.javascript.Contex...
2010 Oct 26
0
[LLVMdev] llvm-dis fails to parse bytecode emitted by clang
...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::materializeModule(std::string*) + 210
> 11 llvm-dis 0x00000000005171b2
> llv...
2011 Sep 05
3
[LLVMdev] [MacOSX] make check failures
...nexpected Failures: 11
I see the error :
llc: <temp-filename>.bc: Unknown instruction for all the tests.
Are these failures known/expected? If not, am I doing something wrong?
A quick check appears to indicate that the failure is in
llvm/lib/Bitcode/Reader/BitcodeReader.cpp:BitcodeReader::ParseFunctionBody().
Thanks,
Bharadwaj
2010 Oct 26
2
[LLVMdev] llvm-dis fails to parse bytecode emitted by clang
...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::materializeModule(std::string*) + 210
>> 11 llvm-dis 0x0...
2006 May 09
1
[LLVMdev] Memory leaks in LLVM
...PointerNull::get(llvm::PointerType
const*) (Constants.cpp:1116)
==10132== by 0x84914D9: llvm::Constant::getNullValue(llvm::Type const*) (
Constants.cpp:113)
==10132== by 0x83E14D3: llvm::BytecodeReader::ParseCompactionTable() (
Reader.cpp:1278)
==10132== by 0x83E4AB6:
llvm::BytecodeReader::ParseFunctionBody(llvm::Function*) (Reader.cpp:1828)
==10132== by 0x83E53D0: llvm::BytecodeReader::ParseAllFunctionBodies() (
Reader.cpp:1981)
==10132== by 0x8406354: llvm::BytecodeReader::materializeModule() (
Reader.h:167)
==10132== by 0x84074C9: llvm::ModuleProvider::releaseModule() (
ModuleProvider.h:53...
2014 Mar 07
3
[LLVMdev] [RFC] Add second "failure" AtomicOrdering to cmpxchg instruction
...lobalValue::DLLImportStorageClass); break;
@@ -210,6 +228,7 @@ static void UpgradeDLLImportExportLinkage(llvm::GlobalValue *GV, unsigned Val) {
}
}
+
namespace llvm {
namespace {
/// @brief A class for maintaining the slot number definition
@@ -2882,7 +2901,8 @@ error_code BitcodeReader::ParseFunctionBody(Function *F) {
break;
}
case bitc::FUNC_CODE_INST_CMPXCHG: {
- // CMPXCHG:[ptrty, ptr, cmp, new, vol, ordering, synchscope]
+ // CMPXCHG:[ptrty, ptr, cmp, new, vol, successordering, synchscope,
+ // failureordering]
unsigned OpNum = 0;
Value *P...