similar to: [LLVMdev] Could insert a label into basic block?

Displaying 20 results from an estimated 20000 matches similar to: "[LLVMdev] Could insert a label into basic block?"

2004 Aug 19
2
[LLVMdev] How could I get memory address for each basic block?
On the pervious mail, I am trying to add label for each basic basic because I think I could get address by using nm if nm can show the address of each label, but it seems not . so do you guys have some idea how to get address for each basic block? Thanks. >I am trying to get the memory address of each basic block. So far I am trying to add the label >into each basic block, actually I need
2004 Aug 19
3
[LLVMdev] How could I get memory address for each basic block?
Qiuyu, The dynamic optimization project (an internal research project in our group) uses some way to map LLVM basic blocks to native code addresses. If this is what you want, perhaps you can ask Brian Gaeke (gaeke at uiuc.edu) to give you some information about how that is done. --Vikram http://www.cs.uiuc.edu/~vadve http://llvm.cs.uiuc.edu/ On Aug 19, 2004, at 5:11 PM, Misha Brukman
2004 Aug 19
0
[LLVMdev] How could I get memory address for each basic block?
On Thu, Aug 19, 2004 at 01:13:42PM -0700, Zhang Qiuyu wrote: > On the pervious mail, I am trying to add label for each basic basic > because I think I could get address by using nm if nm can show the > address of each label, but it seems not . so do you guys have some > idea how to get address for each basic block? Thanks. LLVM does not have a notion of C-style 'labels' that
2004 Aug 19
0
[LLVMdev] How could I get memory address for each basic block?
I'd be interested to hear how that's being done - if Brian would reply to the list about it, I'd appreciate it. -mike On Aug 19, 2004, at 3:39 PM, Vikram S. Adve wrote: > Qiuyu, > > The dynamic optimization project (an internal research project in our > group) uses some way to map LLVM basic blocks to native code > addresses. If this is what you want, perhaps you
2004 Sep 21
1
[LLVMdev] Re:Re:Is there any way to modify basic block like adding junk code
Thanks Chris. I did inserting function into code before using the way you mentioned, such as call a external function. But coud I insert some assemble instructions into *.bc ? what I want to do is to implement polymorphic engine like ADM. It can change the binary code which looks like different but the functionality is exactly same. The simple way to do it is to add some junk code like NOP(
2005 May 11
3
[LLVMdev] Question About inserting Instruction?
Hi, I am working on a project with LLVM. What I need to do is to generate/insert some dummy/dead basic blocls which never have chance to be executed and put some instructions in those dummy/dead basic blocks. So far, the dummy/dead BB insertion is done. I am trying insert instructions in those dummy/dead BB. Actually, I can insert the legal instructions to dummy/dead BB, however, I really want
2004 May 14
2
[LLVMdev] Can I disable the optimizaiton for llvmgcc?
Hi all LLVMor, I just tried to compile a simple code and analyze the number of the basic blocks. But after compile, what I got, the bytecode is seems to be optimized bytecode. So the information of basic blocks is not what I expected. I want ot use the code as example to see how some of code optimization methods work. However, after compiling file using llvm test.c -o test, bytecode file
2005 Jan 11
2
[LLVMdev] Loop IR insertion
Hi, I am trying to insert a Loop IR into the existed bytecode file. insertion part by C code, char *p[n]; // pointer array for storing the address of strings int i; for(i=0;i<n;i++){ (p[i])[2] = (p[i])[2] ^ 0x27; } My questions are 1. for local variable 'char *p[n]' , it is represented by IR as alloca ...., so could I insert local variable (pointer array) directly as same way
2005 May 11
0
[LLVMdev] Re:RE: Question about inserting instructions
On Wed, May 11, 2005 at 01:30:29PM -0700, Qiuyu Zhang wrote: [snip] > push %eax > das > clc > > all of them are legal one-byte x86 machine instructions. [snip] > If there is a way to be able to get that, I am supposed that like > the following, > > 1. generate some dummy BB on IR level ( working on *.bc by writing a
2005 May 11
2
[LLVMdev] Re:RE: Question about inserting instructions
Hi, Thanks Volodya, Misha and Chris, > > For example, > > Correct way: > > Instruction *NewInst = new LoadInst(...); > > NewBB->getInstList().push_back(NewInst); > > > > what I need just put some junk data in the BB, not instructions. From > > assemble code level, it looks like the following, > > > > a piece of code from
2004 Sep 20
1
[LLVMdev] Is there any way to modify basic block like adding junk code or ...
Hi , Is there any way to modify code like adding junk code or mess up the order of a bunch of codes(in same basic block) which is no dependency? I saw some options like -dce -deadargelim for 'opt' , but what I want is to reverse to do it. I mean adding some dead code or junk code. Actually what I want is to implement a ploymorphic engine. Coud I do those by using llvm? Thanks. Qiuyu
2004 Aug 20
1
[LLVMdev] Re:About the address of Basic Block
I really appreciated for you guys' help and thanks all you guys, Misha Brukman, Vikram S. Adve, Michael McCracken, Chris Lattner and Brian R. Gaeke . I hope I can make it clear :-). I am trying ... There is application i.e decoder.c . I compile it using llvm and get excutable file/object file ( named decoder.out/decoder.o ) and decoder.s. And I wrote another code loader.c which is trying to
2005 Feb 03
2
[LLVMdev] question about compile path
Hi, I have a question about install path. Some one installs llvm1.4 under /opt/llvm as root. However, when I create a project under my home directory, I cannot do Make correctly. It should be enviroment issue, but I cannot fix it. The environment is as the following, /opt/llvm : // llvm 1. 4 /home/qiuyu/ ://my home directory /home/qiuyu/project/statBB ://my project directory I create a
2005 Feb 17
5
[LLVMdev] questions about installing llvm
Actually, Misha, that won't work. The -C option is used directly in docs/Makefile. So the change will have to go into docs/Makefile. Either that or upgrade install to version 5. Reid. On Thu, 2005-02-17 at 11:33, Misha Brukman wrote: > On Thu, Feb 17, 2005 at 01:21:20PM -0600, Feng Chen wrote: > > llvm[1]: Installing HTML documentation > >
2005 Jul 22
2
[LLVMdev] How to partition registers into different RegisterClass?
Hi, everyone. I' have three set of registers - read-only regs, general purpose regs (read and write), and write-only regs. How should I partition them into different RegisterClasses so that I can easy define the instruction? All RegisterClasses must be mutally exclusive. That is, a register can only be in a RegisterClass. Otherwise TableGen will raise an error message. def
2004 Dec 21
3
[LLVMdev] Help with code
Constant *strcon==ConstantArray::get("Value : %d\n"); Sorry Typo. On Tue, 21 Dec 2004, Misha Brukman wrote: > On Tue, Dec 21, 2004 at 03:45:33PM -0700, Sriraman Tallam wrote: > > I have this call instruction to printf inserted which is causing > > an assertion failure. Any pointers to where I am wrong : > > > > Function
2005 Feb 17
0
[LLVMdev] Branching to Entry block
On Thu, Feb 17, 2005 at 01:22:22PM -0600, Chris Lattner wrote: > // Approach number 2, the more explicit way: > BB->getParent()->getInstList().erase(BB); // Remove from list & delete > > // Approach number 3, remove from the list, then delete it explicitly: > BB->getParent()->getInstList().remove(BB); // Just remove from list > delete BB;
2004 Oct 19
1
[LLVMdev] Re:question about Insert callInst to call a function in library
Thanks Chris, but the method you mentioned is not what I want. Maybe I didn't make it clear. As you said, /runtime/libprofile is runtime library for the following function. llvm_start_func_profiling llvm_start_block_profiling llvm_start_basic_block_tracing llvm_trace_basic_block And those above functions can be inserted into basic block etc for getting profile. However, those
2004 Jun 23
3
[LLVMdev] weird issue with mem2reg
On Wed, Jun 23, 2004 at 03:50:09PM -0500, Patrick Meredith wrote: > MetaSplit is an anlysis I just finished writing. It doesn't alter > anything, all it does is build a set of "program instructions". For > some reason even though if I run it with any other combination of > passes I've found, anytime I run it with mem2reg I get a seg fault in > dyn_cast!
2004 Oct 07
2
[LLVMdev] problem with lli (llvm 1.3)
Thanks Misha. I tried the "gcc -dM -E /tmp/file.c | grep __sparcv9" but there was no output. Maybe this is the probelm, I do have CXX = g++ -mcpu=v9 CC := gcc -mcpu=v9 in the Makefile.config. Do I need to add -m64 as well? Thanks. Shukang On Thu, 7 Oct 2004, Misha Brukman wrote: > Is your compiler configured to define __sparcv9 when it compiles? > The following should tell