Displaying 6 results from an estimated 6 matches for "writebytecodepass".
2018 Aug 24
3
OpaqueType:: get()
I have code that uses OpaqueType::get(), it was used to be in
llvm/IR/DerivedType.h , but it is removed now. What should I use for it
replacement.
Also, it is using #include <llvm/Bytecode/WriteBytecodePass.h> , but I do
not found any WriteBytecodePass.h in my source code. Please tell me, what
should I use in replacement of these.
Thanks& Regards,
Ratnesh Tiwari
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachme...
2006 Dec 01
0
[LLVMdev] [patch] [llvm-gcc4] fix bootstrap failure
...rrectly, the ostream wrapper is
> also a temporary solution, so this might be acceptable.
>
Hey guys,
Notice that the llvm_ostream doesn't delete the ostream that you pass
into it. If you want to make sure that it's deleted, I think you'll
want to pass in "true" to the WriteBytecodePass so that it'll delete
the llvm_ostream. This won't affect the AsmOutFile, which gets deleted
at the end of the function...
-bw
2006 Nov 30
3
[LLVMdev] [patch] [llvm-gcc4] fix bootstrap failure
On 11/30/06, Andrew Lenharth <andrewl at lenharth.org> wrote:
> The llvm_ostreams, which you take the address of go out of scope very
> quickly, and are only stored by address in the bytecode writer, thus
> the writers have a pointer to a stack allocated object they are to
> write to. This crashes.
The attached version leaks :-)
It is a work around. If I understand correctly,
2006 Dec 01
0
[LLVMdev] [patch] [llvm-gcc4] fix bootstrap failure
...gt; also a temporary solution, so this might be acceptable.
> >
>
> Hey guys,
>
> Notice that the llvm_ostream doesn't delete the ostream that you pass
> into it. If you want to make sure that it's deleted, I think you'll
> want to pass in "true" to the WriteBytecodePass so that it'll delete
> the llvm_ostream. This won't affect the AsmOutFile, which gets deleted
> at the end of the function...
>
> -bw
>
2006 May 17
0
[LLVMdev] Obfuscation with LLVM
....h"
#include "llvm/Module.h"
#include "llvm/PassManager.h"
#include "llvm/Bytecode/Reader.h"
#include "llvm/Analysis/Verifier.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Bytecode/WriteBytecodePass.h"
#include "MakeDispatcherPass.h"
using namespace llvm;
static cl::opt< std::string >
InputFilename( cl::Positional, cl::desc( "<input .bc file>" ), cl::Required
);
static cl::opt< std::string >
OutputFilename( cl::Positional, cl::desc( "<outp...
2007 Apr 30
1
[LLVMdev] llvm-gcc build broken
...ler/llvm-gcc/gcc/llvm-backend.cpp:34:34: error:
llvm/Assembly/Writer.h: No such file or directory
/projects/compiler/llvm-gcc/gcc/llvm-backend.cpp:35:43: error:
llvm/Assembly/PrintModulePass.h: No such file or directory
/projects/compiler/llvm-gcc/gcc/llvm-backend.cpp:36:45: error:
llvm/Bytecode/WriteBytecodePass.h: No such file or directory
/projects/compiler/llvm-gcc/gcc/llvm-backend.cpp:37:34: error:
llvm/Bytecode/Reader.h: No such file or directory
/projects/compiler/llvm-gcc/gcc/llvm-backend.cpp:38:43: error:
llvm/CodeGen/RegAllocRegistry.h: No such file or directory
/projects/compiler/llvm-gcc/gcc/l...