Displaying 10 results from an estimated 10 matches for "createbitcodewriterpass".
2012 Feb 03
2
[LLVMdev] Invalid bitcode signature
..."), owning_ptr))
std::cout << "error opening file" << std::endl;
Module* Lib = ParseBitcodeFile(owning_ptr.get(), context, &error);
if (!Lib)
std::cout << error << std::endl;
When I run this (either on a bitcode file generated by llvm-gcc or by
createBitcodeWriterPass()) I get an error telling me: "invalid bitcode
signature".
I'm not sure where this error's coming from. Any help would be appreciated.
--
View this message in context: http://old.nabble.com/Invalid-bitcode-signature-tp33259763p33259763.html
Sent from the LLVM - Dev mailing l...
2007 Jul 13
0
[LLVMdev] llvm-gcc-4-2 development branch is open
...ot;
#include "llvm/Support/Streams.h"
/// dummy_function - This is used when linking the LLVM libraries into a dynamic
@@ -40,8 +41,10 @@
void dummy_function() {
new llvm::ExistingModuleProvider(0);
llvm::createVerifierPass();
- llvm::WriteBitcodeToFile(0, llvm::cout);
+ llvm::CreateBitcodeWriterPass(*llvm::cout);
+ llvm::WriteBitcodeToFile(0, *llvm::cout);
llvm::ParseBitcodeFile(NULL);
+ llvm::MemoryBuffer::getNewMemBuffer(0);
llvm::createInstructionCombiningPass();
llvm::createScalarReplAggregatesPass();
2012 Feb 04
0
[LLVMdev] Invalid bitcode signature
...;< "error opening file" << std::endl;
>
> Module* Lib = ParseBitcodeFile(owning_ptr.get(), context, &error);
>
> if (!Lib)
> std::cout << error << std::endl;
>
> When I run this (either on a bitcode file generated by llvm-gcc or by
> createBitcodeWriterPass()) I get an error telling me: "invalid bitcode
> signature".
>
> I'm not sure where this error's coming from. Any help would be appreciated.
>
The error is coming from the bit-code reader. Make sure that you generated the file with '-emit-llvm' (i.e., it'...
2007 Jul 13
2
[LLVMdev] llvm-gcc-4-2 development branch is open
...reams.h"
>
> /// dummy_function - This is used when linking the LLVM libraries into a dynamic
> @@ -40,8 +41,10 @@
> void dummy_function() {
> new llvm::ExistingModuleProvider(0);
> llvm::createVerifierPass();
> - llvm::WriteBitcodeToFile(0, llvm::cout);
> + llvm::CreateBitcodeWriterPass(*llvm::cout);
> + llvm::WriteBitcodeToFile(0, *llvm::cout);
> llvm::ParseBitcodeFile(NULL);
> + llvm::MemoryBuffer::getNewMemBuffer(0);
>
> llvm::createInstructionCombiningPass();
> llvm::createScalarReplAggregatesPass();
> ______________________________________________...
2007 Jul 14
0
[LLVMdev] llvm-gcc-4-2 development branch is open
...ay:
void dummy_function() {
new llvm::ExistingModuleProvider(0);
llvm::createVerifierPass();
llvm::WriteBitcodeToFile(0, llvm::cout);
llvm::ParseBitcodeFile(NULL);
...
and in llvm-gcc-4.2:
void dummy_function() {
new llvm::ExistingModuleProvider(0);
llvm::createVerifierPass();
llvm::CreateBitcodeWriterPass(*llvm::cout);
llvm::WriteBitcodeToFile(0, *llvm::cout);
llvm::ParseBitcodeFile(NULL);
llvm::MemoryBuffer::getNewMemBuffer(0);
If the llvm-gcc-4.2 version is correct, the mirror needs to be corrected.
Not sure how to do that...
Ciao,
Duncan.
2007 Jul 13
2
[LLVMdev] llvm-gcc-4-2 development branch is open
On Jul 13, 2007, at 9:28 AM, Duncan Sands wrote:
> Hi Chris,
>
>> This is probably a patch that got checked into llvm-gcc4 after devang
>> started work on 4.2. Please feel free to update 4.2 to the version
>> in
>> 4.0.
>
> no, it doesn't exist in 4.0.
hmm. that can not be true. It was applied by Evan on May 07, 2007 to
unbreak Apple style builds.
-
2008 Jun 04
1
[LLVMdev] Standard output binary mode on windows
...getData(*TheTarget->getTargetData()));
+ // If writing to stdout, set binary mode.
+ if (asm_out_file == stdout)
+ sys::Program::ChangeStdoutToBinary();
+
// Emit an LLVM .bc file to the output. This is used when passed
// -emit-llvm -c to the GCC driver.
PerModulePasses->add(CreateBitcodeWriterPass(*AsmOutStream));
@@ -473,6 +478,10 @@
// wrong for llvm/.bc emission cases.
flag_no_ident = 1;
+ // If writing to stdout, set binary mode.
+ if (asm_out_file == stdout)
+ sys::Program::ChangeStdoutToBinary();
+
AttributeUsedGlobals.clear();
timevar_pop(TV_LLVM_INIT);
}
2007 Jul 11
12
[LLVMdev] llvm-gcc-4-2 development branch is open
Hi All,
llvm-gcc-4-2 development branch is now open for development at
llvm.org/svn/llvm-project/llvm-gcc-4-2
It is not yet ready, it can not even bootstrap. I welcome LLVM
developers to test and apply fixes!
However, first take a note of ground rules :
1) LLVM developers, use your write access as judiciously as you use it
for LLVM development and follow same check-in procedure.
2)
2011 Apr 05
3
[LLVMdev] Building LLVM on Solaris/Sparc
...Assert/llvm-objects/tools/opt/Debug+Asserts/opt.o
llvm::createLICMPass()
/n/fs/scratch/tpondich/ParallelAssert/llvm-objects/tools/opt/Debug+Asserts/opt.o
llvm::initializeInstrumentation(llvm::PassRegistry&)
/n/fs/scratch/tpondich/ParallelAssert/llvm-objects/tools/opt/Debug+Asserts/opt.o
llvm::createBitcodeWriterPass(llvm::raw_ostream&)
/n/fs/scratch/tpondich/ParallelAssert/llvm-objects/tools/opt/Debug+Asserts/opt.o
llvm::TargetData::ID
/n/fs/scratch/tpondich/ParallelAssert/llvm-objects/tools/opt/Debug+Asserts/opt.o
llvm::createSimplifyLibCallsPass()
/n/fs/scratch/tpondich/ParallelAssert/llvm-objects/tool...
2007 Jul 05
2
[LLVMdev] PATCH (rest of code changes) "bytecode" --> "bitcode"
Here is the bulk of the sanitizing.
My residual doubts center around the question
whether we still do/want to support (un)compressed *byte*code
in 2.0/2.1.
I need a definitive word on this to proceed.
My understanding is that bytecode is already gone, but there are
still some functions/enums that really deal with *byte*code
(instead of *bit*code).
I did not touch those areas, so the attached