Displaying 15 results from an estimated 15 matches for "writemodul".
Did you mean:
writemodule
2016 Oct 26
0
RFC: APIs for bitcode files containing multiple modules
...te a multi-module bitcode file, you would create a BitcodeWriter object and add modules to it:
>
> BitcodeWriter W(OS);
> W.addModule(M1);
> W.addModule(M2);
> W.write();
That requires the two modules to lives longer than the bitcode write, the API could be:
BitcodeWriter W(OS);
W.writeModule(M1);
// delete M1
// ...
// create M2
W.writeModule(M2);
(Maybe you had this in mind, but the API naming didn’t reflect it so I’m not sure).
>
> Reading a multi-module bitcode file would be supported with a BitcodeReader class. Each of the functional reader APIs in ReaderWriter.h would h...
2016 Oct 26
2
RFC: APIs for bitcode files containing multiple modules
Hi all,
As mentioned in my recent RFC entitled "RFC: a more detailed design for
ThinLTO + vcall CFI" I would like to introduce the ability for bitcode
files to contain multiple modules. In https://reviews.llvm.org/D24786 I
took a step towards that by proposing a change to the module format so that
the block info block is stored at the top level. The next step is to think
about what the
2016 Oct 26
2
RFC: APIs for bitcode files containing multiple modules
...gt; would create a BitcodeWriter object and add modules to it:
>
> BitcodeWriter W(OS);
> W.addModule(M1);
> W.addModule(M2);
> W.write();
>
>
> That requires the two modules to lives longer than the bitcode write, the
> API could be:
>
> BitcodeWriter W(OS);
> W.writeModule(M1);
> // delete M1
> // ...
> // create M2
> W.writeModule(M2);
>
> (Maybe you had this in mind, but the API naming didn’t reflect it so I’m
> not sure).
>
In the API I prototyped, I took the maximum BitsRequiredForTypeIndices
value from all the modules, and used it to pr...
2016 Oct 28
0
RFC: APIs for bitcode files containing multiple modules
...modules to it:
>>
>> BitcodeWriter W(OS);
>> W.addModule(M1);
>> W.addModule(M2);
>> W.write();
>>
>>
>> That requires the two modules to lives longer than the bitcode write, the
>> API could be:
>>
>> BitcodeWriter W(OS);
>> W.writeModule(M1);
>> // delete M1
>> // ...
>> // create M2
>> W.writeModule(M2);
>>
>> (Maybe you had this in mind, but the API naming didn’t reflect it so I’m
>> not sure).
>
>
> In the API I prototyped, I took the maximum BitsRequiredForTypeIndices value
&g...
2012 Dec 16
2
[LLVMdev] write module to .bc file
i'm afraid this question is extremely basic, but i've assumed that
dumping a .bc file from a module was a trivial operation, but now,
first time i have to actually do it from code, for the life of me i
can't find one missing step in the process:
static void WriteModule ( const Module * M, BitstreamWriter & Stream )
http://llvm.org/docs/doxygen/html/BitcodeWriter_8cpp.html#a828cec7a8fed9d232556420efef7ae89
to write that module, first i need a BistreamWriter
BitstreamWriter::BitstreamWriter (SmallVectorImpl< char > &O)
http://llvm.org/docs/doxyge...
2016 Dec 31
2
Dumping compiled module as LLVM IR bitcode after certain optimization passes
...ion passes (opt).
An alternative I have is to programmatically generate the corresponding bitcode file
at the right time after finishing the pass in discussion - see, for example,
http://stackoverflow.com/questions/13903686/writing-module-to-bc-bitcode-file, methods
WriteBitcodeToFile() or WriteModule() .
Thank you,
Alex
2017 Jul 05
3
MSP430 code generation from LLVM IR
...a7
codegenModule(llvm::TargetMachine&, llvm::Module&, llvm::raw_fd_ostream&,
llvm::TargetMachine::CodeGenFileType) + 391
9 ldc2 0x0000000105f00ab9 (anonymous
namespace)::writeObjectFile(llvm::Module*, char const*) + 377
10 ldc2 0x0000000105efcc05 writeModule(llvm::Module*,
char const*) + 10517
11 ldc2 0x0000000105ee6162
ldc::CodeGenerator::writeAndFreeLLModule(char const*) + 1602
12 ldc2 0x0000000105ee6a82
ldc::CodeGenerator::finishLLModule(Module*) + 130
13 ldc2 0x0000000105ee880c
ldc::CodeG...
2016 Oct 28
2
RFC: APIs for bitcode files containing multiple modules
...gt; >> W.addModule(M1);
> >> W.addModule(M2);
> >> W.write();
> >>
> >>
> >> That requires the two modules to lives longer than the bitcode write,
> the
> >> API could be:
> >>
> >> BitcodeWriter W(OS);
> >> W.writeModule(M1);
> >> // delete M1
> >> // ...
> >> // create M2
> >> W.writeModule(M2);
> >>
> >> (Maybe you had this in mind, but the API naming didn’t reflect it so I’m
> >> not sure).
> >
> >
> > In the API I prototyped, I to...
2016 Dec 31
0
Dumping compiled module as LLVM IR bitcode after certain optimization passes
...asses (opt).
>
> An alternative I have is to programmatically generate the corresponding bitcode file at the right time after finishing the pass in discussion - see, for example, http://stackoverflow.com/questions/13903686/writing-module-to-bc-bitcode-file, methods WriteBitcodeToFile() or WriteModule() .
>
> Thank you,
> Alex
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
2016 Oct 28
0
RFC: APIs for bitcode files containing multiple modules
....addModule(M2);
>> >> W.write();
>> >>
>> >>
>> >> That requires the two modules to lives longer than the bitcode write,
>> >> the
>> >> API could be:
>> >>
>> >> BitcodeWriter W(OS);
>> >> W.writeModule(M1);
>> >> // delete M1
>> >> // ...
>> >> // create M2
>> >> W.writeModule(M2);
>> >>
>> >> (Maybe you had this in mind, but the API naming didn’t reflect it so
>> >> I’m
>> >> not sure).
>> >...
2016 Oct 28
2
RFC: APIs for bitcode files containing multiple modules
...t;> W.write();
>>>>>
>>>>>
>>>>> That requires the two modules to lives longer than the bitcode write,
>>>>> the
>>>>> API could be:
>>>>>
>>>>> BitcodeWriter W(OS);
>>>>> W.writeModule(M1);
>>>>> // delete M1
>>>>> // ...
>>>>> // create M2
>>>>> W.writeModule(M2);
>>>>>
>>>>> (Maybe you had this in mind, but the API naming didn’t reflect it so
>>>>> I’m
>>>>>...
2017 Apr 04
3
RFC: Adding a string table to the bitcode format
On Tue, Apr 4, 2017 at 12:36 PM, Duncan P. N. Exon Smith <
dexonsmith at apple.com> wrote:
>
> On 2017-Apr-04, at 12:12, Peter Collingbourne <peter at pcc.me.uk> wrote:
>
> On Mon, Apr 3, 2017 at 8:13 PM, Mehdi Amini <mehdi.amini at apple.com> wrote:
>
>>
>> On Apr 3, 2017, at 7:08 PM, Peter Collingbourne <peter at pcc.me.uk> wrote:
>>
2016 Oct 28
0
RFC: APIs for bitcode files containing multiple modules
...t;>>
>>>>>>
>>>>>> That requires the two modules to lives longer than the bitcode write,
>>>>>> the
>>>>>> API could be:
>>>>>>
>>>>>> BitcodeWriter W(OS);
>>>>>> W.writeModule(M1);
>>>>>> // delete M1
>>>>>> // ...
>>>>>> // create M2
>>>>>> W.writeModule(M2);
>>>>>>
>>>>>> (Maybe you had this in mind, but the API naming didn’t reflect it so
>>>>>&...
2008 Jun 04
1
[LLVMdev] Standard output binary mode on windows
...quot;
#include "llvm/ValueSymbolTable.h"
#include "llvm/Support/MathExtras.h"
+#include "llvm/System/Program.h"
using namespace llvm;
/// These are manifest constants used by the bitcode writer. They do not need to
@@ -1292,6 +1293,10 @@
// Emit the module.
WriteModule(M, Stream);
+ // If writing to stdout, set binary mode.
+ if (llvm::cout == Out)
+ sys::Program::ChangeStdoutToBinary();
+
// Write the generated bitstream to "Out".
Out.write((char*)&Buffer.front(), Buffer.size());
-------------- next part --------------
Index:...
2016 Jun 28
0
mutateType on AllocaInst problem
...Function const*, unsigned long,
llvm::DenseMapInfo<llvm::Function const*>,
llvm::detail::DenseMapPair<llvm::Function const*, unsigned long> >&)
/home/pierre/Desktop/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp:2866:0
#12 0x000000000204be9d (anonymous
namespace)::ModuleBitcodeWriter::writeModule()
/home/pierre/Desktop/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp:3588:0
#13 0x000000000204bc70 (anonymous
namespace)::ModuleBitcodeWriter::writeBlocks()
/home/pierre/Desktop/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp:3537:0
#14 0x000000000204bc49 (anonymous namespace)::BitcodeWriter::write()
/home/...