similar to: [LLVMdev] Executing a transformed program

Displaying 20 results from an estimated 2000 matches similar to: "[LLVMdev] Executing a transformed program"

2010 Jul 04
2
[LLVMdev] Executing a transformed program
Thank you for the answer Reid. I've been already using the format `opt -load MyPass.so -my-pass input.bc -o output.bc`. But my problem is to execute the .s generated file. As long as I know, gcc compiler is capable to generate target machine code from assembly. So I tried to compile it with gcc to generate machine code, but there was many problems. Is there any way to compile and run .s files?
2010 Jul 02
0
[LLVMdev] Executing a transformed program
How are you getting LLVM to run your pass? There's plenty of information here if you haven't found this document: http://llvm.org/docs/WritingAnLLVMPass.html I'm going to assume you're using `opt -load MyPass.so -my-pass input.bc -o output.bc` in which case you can just run llc on output.bc to get a .s file. Reid On Thu, Jul 1, 2010 at 8:16 PM, Alysson <aishofpf at
2010 Jul 05
0
[LLVMdev] Executing a transformed program
I don't know if there is something to do with my problem, but I'm using VMKit front-end to generate the .bc files. So, after generating the example.bc, I remove some redundant instructions with my pass with opt. On Sun, Jul 4, 2010 at 8:32 PM, Alysson <aishofpf at gmail.com> wrote: > Thank you for the answer Reid. > I've been already using the format `opt -load MyPass.so
2009 Nov 19
1
[LLVMdev] Removing instanceof tests
Hi all, I wrote you some days ago about one project that I want to do on vmkit: I want to remove redundant instanceof tests. I am right now looking at the LLVM code that vmkit produces for java files, but I am finding it very difficult to identify the code that is produced by each instanceof. Would it be possible for you guys to give me some pointers on how to attack this problem? Should I
2010 Jul 05
0
[LLVMdev] vmkit build problems
Hi Zoe, maybe you've already solved your problem with VMKit configuration, but here you can find a mini-tutorial that I've done to guide people on VMKit installation. http://www2.dcc.ufmg.br/laboratorios/llp/wiki/doku.php?id=afpf Best regards, Alysson On Wed, Jun 30, 2010 at 1:34 PM, nicolas geoffray < nicolas.geoffray at gmail.com> wrote: > Hi Zoe, > > Unfortunately, I
2010 Jun 30
2
[LLVMdev] vmkit build problems
Hi Zoe, Unfortunately, I don't have access to a x64 machine anymore, so I can't test that architecture on vmkit. Could you install a virtual machine on your machine that is x86_32? I know it has been successfully built and ran on x86_32 on different systems. Cheers, Nicolas On Wed, Jun 30, 2010 at 7:49 AM, Zoe Wolk <zoewolk at gmail.com> wrote: > Hi again Nicolas, > >
2010 Jun 21
0
[LLVMdev] Problems with eraseFromParent()
Alysson wrote: > Hi LLVMers, > > I am working on my llvm school project optimization pass. It's > relatively simple, and it tries to remove redundant bitcast instructions > followed by load instructions. At first, I'm using as input a bytecode > generated by a simple Java test program. > I've already found the reduntant instructions by looking at it's
2010 Jul 06
2
[LLVMdev] vmkit build problems
Thanks Alysson. Unfortunately, those instructions don't work for me (I followed them exactly using a clean system) -- probably because of the recent changes to the svn heads. After fixing EscapeAnalysis in vmkit to use the updated CallInst.getArgOperand interface I hit the error below. I was interested in using mmtk with the system (as recommended), but that requires a llvm-gcc build (and
2010 Jun 21
3
[LLVMdev] Problems with eraseFromParent()
Hi LLVMers, I am working on my llvm school project optimization pass. It's relatively simple, and it tries to remove redundant bitcast instructions followed by load instructions. At first, I'm using as input a bytecode generated by a simple Java test program. I've already found the reduntant instructions by looking at it's CFG, and I also could implement the code to
2009 Sep 21
1
[LLVMdev] Removing redundant type checks from Java
Hi, LLVMers, I am a CS student in my final year, and I would like to use LLVM in my final course project. So, I just download LLVM and VMKit, and I have been playing with both. I can produce llvm bytecodes from java programs, and now my idea is to remove redundant type checks from the code. For instance, if we consider a program like this: if (o instanceof A) { A a = (A) o; // do
2005 Aug 29
8
Samba as a domain controller for Linux workstations?
I was wondering, if it's possible to set up Samba as a sort of a domain controller for Linux workstations? I'm thinking of benefits like roaming profiles, managing printers etc. Or perhaps for Linux there are better choices than Samba, when it comes to the office / school use (many users, many classrooms, many workstations etc.)? -- Tomek http://wpkg.org
2013 Aug 20
4
[LLVMdev] Memory optimizations for LLVM JIT
Hello. I'm new to LLVM and I've got some problems with LLVM JIT. I have set ExecutionEngine as CodeGenOpt::Aggressive and PassManagerBuilder.OptLevel as 3. (mem2reg and GVN are included) However, the machine code generated by JIT is not as good as that generated by clang or llc. Here is an example: -------------------------------------------------------------------- source fragment
2013 Aug 20
0
[LLVMdev] Memory optimizations for LLVM JIT
On 20 Aug 2013, at 08:23, 王振江 <cryst216 at gmail.com<mailto:cryst216 at gmail.com>> wrote: A GlobalValue was declared and mapped to the variable p. Some LLVM IR instructions were created according to those generated by LLVM from source. I.e., load p, load a[1] based on p, load p again, store a[2] based on p, etc. The machine code turned out to be slightly optmized, as shown on the
2009 Dec 15
2
[LLVMdev] Running a pass
Hello LLVM, I am following the document "Writing an LLVM Pass". When I ran "opt -load ../../../Debug/lib/MyPass.so -mypass < hello.bc > /dev/null" I got the next error: ***@ubuntu:~/test$ opt -load ../../llvm/Debug/lib/MyPass.so -mypass < hello.bc > /dev/null opt: Pass.cpp:159: void<unnamed>::PassRegistrar::RegisterPass(const llvm::PassInfo&): Assertion
2018 Jan 28
4
Polly Dependency Analysis in MyPass
Hello, I need to analyze dependencies in my llvm ir by using polly. i created a new pass called mypass there i added polly dependency analysis pass but when i execute this pass in gdb i get no data. Why is that so? My code is follows; namespace { struct mypass : public FunctionPass { static char ID; mypass() : FunctionPass(ID) { } virtual bool runOnFunction(Function &F) {
2012 Mar 23
3
[LLVMdev] Function Pass Manager
Hi, I'm writing a function pass which is dynamically loaded by opt and I need some analysis and passes to be run before my pass: virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired<LoopInfo>(); AU.addPreserved<LoopInfo>(); AU.addRequiredID(LoopSimplifyID); AU.addPreservedID(LoopSimplifyID);
2009 Dec 15
0
[LLVMdev] Running a pass
Juan Carlos Martinez Santos wrote: > Hello LLVM, > > I am following the document "Writing an LLVM Pass". When I ran "opt > -load ../../../Debug/lib/MyPass.so -mypass < hello.bc > /dev/null" I > got the next error: > > ***@ubuntu:~/test$ opt -load ../../llvm/Debug/lib/MyPass.so -mypass < > hello.bc > /dev/null > opt: Pass.cpp:159:
2018 Jan 29
0
Polly Dependency Analysis in MyPass
How do you compile the code? Within the Polly subdirectory using CMake? How do you run your pass. Using "opt -mypass inputfile.ll"? Michael 2018-01-28 9:30 GMT-06:00 hameeza ahmed via llvm-dev <llvm-dev at lists.llvm.org>: > Hello, > > I need to analyze dependencies in my llvm ir by using polly. i created a new > pass called mypass there i added polly dependency
2008 May 05
2
[LLVMdev] debugging LLVM generated executables???
Hi everyone, I have a question that seems simple, but has been confounding me for several hours. I'd like to debug a binary produced with LLVM. For the life of me, I can't get any symbols into gdb and llvm-db won't even start the program nor load any useful information about it. Here's my current strategy (which isn't working): llvm-gcc -g -O0 -c -emit-llvm
2012 Apr 12
0
[LLVMdev] Function Pass Manager
Hi again, I come back to this issue with an example. It's a pass which does nothing but throw the 'Unable to schedule' error. namespace { struct MyPass : public FunctionPass { static char ID; // Pass identification, replacement for typeid MyPass() : FunctionPass(ID) { initializeMyPassPass(*PassRegistry::getPassRegistry()); } virtual void