search for: getbytecodemoduleprovider

Displaying 13 results from an estimated 13 matches for "getbytecodemoduleprovider".

2006 Sep 25
2
[LLVMdev] Name of Function's original module during link-time optimization
Hi, Reid Spencer wrote: > Call getBytecodeModuleProvider (see Reader.h). The problem is that one needs to provide the filename of the original module as the argument of getBytecodeModuleProvider, whereas this is unknown (it's exactly what we're trying to find out). But, by looking where this method is called in the original bytecode loading p...
2006 Sep 24
0
[LLVMdev] Name of Function's original module during link-time optimization
...ed patch). > However, I can't find out how to read in the ModuleID of a Module > during bytecode loading in lib/bytecode/Reader/Reader.cpp. > > How can one do this? Is there another (better) way to accomplish what > I intend to do here (without extra attribute e.g.)? Call getBytecodeModuleProvider (see Reader.h). This will return a ModuleProvider. Ask it for the Module and then ask the Module for its identifier. This approach avoids loading all the functions. Reid.
2006 Sep 24
2
[LLVMdev] Name of Function's original module during link-time optimization
Hi, During link-time optimization using llvm-ld, I occasionally need to find the name/ID of the original module/bytecode file a Function belonged to. In order to do this I added a nameOfPreviousModule- attribute to Function and some getters/setters (see attached patch). However, I can't find out how to read in the ModuleID of a Module during bytecode loading in
2006 May 09
1
[LLVMdev] Memory leaks in LLVM
...:BytecodeReader::ParseBytecode(unsigned char const*, unsigned, std::string const&) ( Reader.cpp:2469) ==10132== by 0x83E7F4B: (anonymous namespace)::BytecodeFileReader::BytecodeFileReader(std::string const&, llvm::BytecodeHandler*) (ReaderWrappers.cpp:54) ==10132== by 0x83EA259: llvm::getBytecodeModuleProvider(std::string const&, llvm::BytecodeHandler*) ( ReaderWrappers.cpp:287) ==10132== by 0x83EA32A: llvm::ParseBytecodeFile(std::string const&, std::string*) (ReaderWrappers.cpp:297) ==10132== by 0x83D0920: main (opt.cpp:87) ==10132== ==10132== ==10132== 108 bytes in 3 blocks are still reac...
2006 Sep 25
0
[LLVMdev] Name of Function's original module during link-time optimization
On Mon, 25 Sep 2006, Bram Adams wrote: > Reid Spencer wrote: >> Call getBytecodeModuleProvider (see Reader.h). > The problem is that one needs to provide the filename of the original module > as the argument of getBytecodeModuleProvider, whereas this is unknown (it's > exactly what we're trying to find out). > > But, by looking where this method is called in the orig...
2007 Feb 22
2
[LLVMdev] opt -verify
...> const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >*)+0x539)[0x856f6c1] opt((anonymous namespace)::BytecodeFileReader::read(std::basic_string<char, std::char_traits<char>, std::allocator<char> >*)+0xeb)[0x855b569] opt(llvm::getBytecodeModuleProvider(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >*, llvm::BytecodeHandler*)+0x93)[0x855b60b] opt(llvm::ParseBytecodeFile(std::basic_string<char, std::ch...
2007 Feb 23
2
[LLVMdev] bytecode reader assertion failure
...> const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >*)+0x539)[0x856f6c1] opt((anonymous namespace)::BytecodeFileReader::read(std::basic_string<char, std::char_traits<char>, std::allocator<char> >*)+0xeb)[0x855b569] opt(llvm::getBytecodeModuleProvider(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >*, llvm::BytecodeHandler*)+0x93)[0x855b60b] opt(llvm::ParseBytecodeFile(std::basic_string<char, std::ch...
2007 Feb 22
3
[LLVMdev] opt -verify
...r, >> std::char_traits<char>, std::allocator<char> >*)+0x539)[0x856f6c1] >> opt((anonymous >> namespace)::BytecodeFileReader::read(std::basic_string<char, >> std::char_traits<char>, std::allocator<char> >*)+0xeb)[0x855b569] >> opt(llvm::getBytecodeModuleProvider(std::basic_string<char, >> std::char_traits<char>, std::allocator<char> > const&, >> std::basic_string<char, std::char_traits<char>, std::allocator<char> >*, >> llvm::BytecodeHandler*)+0x93)[0x855b60b] >> opt(llvm::ParseBytecodeFile(st...
2007 Feb 22
0
[LLVMdev] opt -verify
...std::char_traits<char>, std::allocator<char> >*)+0x539)[0x856f6c1] >>>opt((anonymous >>>namespace)::BytecodeFileReader::read(std::basic_string<char, >>>std::char_traits<char>, std::allocator<char> >*)+0xeb)[0x855b569] >>>opt(llvm::getBytecodeModuleProvider(std::basic_string<char, >>>std::char_traits<char>, std::allocator<char> > const&, >>>std::basic_string<char, std::char_traits<char>, std::allocator<char> >*, >>>llvm::BytecodeHandler*)+0x93)[0x855b60b] >>>opt(llvm::ParseByt...
2007 Feb 22
0
[LLVMdev] opt -verify
...:basic_string<char, > std::char_traits<char>, std::allocator<char> >*)+0x539)[0x856f6c1] > opt((anonymous > namespace)::BytecodeFileReader::read(std::basic_string<char, > std::char_traits<char>, std::allocator<char> >*)+0xeb)[0x855b569] > opt(llvm::getBytecodeModuleProvider(std::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&, > std::basic_string<char, std::char_traits<char>, std::allocator<char> >*, > llvm::BytecodeHandler*)+0x93)[0x855b60b] > opt(llvm::ParseBytecodeFile(std::basic_string&...
2007 Feb 23
0
[LLVMdev] bytecode reader assertion failure
...sic_string<char, > std::char_traits<char>, std::allocator<char> >*)+0x539)[0x856f6c1] > opt((anonymous > namespace)::BytecodeFileReader::read(std::basic_string<char, > std::char_traits<char>, std::allocator<char> >*)+0xeb)[0x855b569] > opt(llvm::getBytecodeModuleProvider(std::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&, > std::basic_string<char, std::char_traits<char>, std::allocator<char> >*, > llvm::BytecodeHandler*)+0x93)[0x855b60b] > opt(llvm::ParseBytecodeFile(std::basic_stri...
2007 Feb 23
1
[LLVMdev] bytecode reader assertion failure
...har, >>std::char_traits<char>, std::allocator<char> >*)+0x539)[0x856f6c1] >>opt((anonymous >>namespace)::BytecodeFileReader::read(std::basic_string<char, >>std::char_traits<char>, std::allocator<char> >*)+0xeb)[0x855b569] >>opt(llvm::getBytecodeModuleProvider(std::basic_string<char, >>std::char_traits<char>, std::allocator<char> > const&, >>std::basic_string<char, std::char_traits<char>, std::allocator<char> >*, >>llvm::BytecodeHandler*)+0x93)[0x855b60b] >>opt(llvm::ParseBytecodeFile(std...
2007 Feb 22
1
[LLVMdev] opt -verify
...<char>, std::allocator<char> >*)+0x539)[0x856f6c1] >>>>opt((anonymous >>>>namespace)::BytecodeFileReader::read(std::basic_string<char, >>>>std::char_traits<char>, std::allocator<char> >*)+0xeb)[0x855b569] >>>>opt(llvm::getBytecodeModuleProvider(std::basic_string<char, >>>>std::char_traits<char>, std::allocator<char> > const&, >>>>std::basic_string<char, std::char_traits<char>, std::allocator<char> >*, >>>>llvm::BytecodeHandler*)+0x93)[0x855b60b] >>>>op...