Displaying 20 results from an estimated 100 matches similar to: "[LLVMdev] How could I get memory address for each assemble instruction?"
2004 Sep 20
2
[LLVMdev] Re: How could I get memory address for each assemble code?
Thanks John and Chris.
I could get the address information by the way you guys mentioned. But it is not what I want, because it will lose information about the entry of basic block. Actually what I want to get is the address of each entry of basic block. Now I am trying to declare the label of basic block as global type, hopefully I can get it from symbol table. Can I get it by this way?
Thanks
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
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 Nov 29
2
[LLVMdev] Could I get bytecode of SPEC ?
Hi,
Under directory, /llvm/test/programs/external/spec, It seems there are several makefiles for SPEC. I am just wondering could I get the SPEC code or bytecode. Thanks in advance.
Qiuyu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20041128/4d33a3bf/attachment.html>
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
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
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 Nov 29
0
[LLVMdev] Could I get bytecode of SPEC ?
On Nov 29, 2004, at 12:46 AM, Zhang Qiuyu wrote:
> Hi,
>
> Under directory, /llvm/test/programs/external/spec, It seems there are
> several makefiles for SPEC. I am just wondering could I get the SPEC
> code or bytecode. Thanks in advance.
Because of the SPEC licensing restrictions, we cannot distribute SPEC
to non-UIUC users. I expect UCLA would have a site-wide license so
2005 Jan 27
1
[LLVMdev] Question about inserting IR code
Hi,
From the file HowToUseJIT.cpp, I learned how to insert some calcuation IR code like Add/Sub/Mul etc by using
Instruction *Add = BinaryOperator::createAdd(One, ArgX, "addresult", BB);
By following this way, it works well when I insert some IR code whose operand is integer type like IntTy, however, when I tried to insert similar thing whose operands are float point, I got the
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 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
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
2004 Aug 19
1
[LLVMdev] Could insert a label into basic block?
Hi,
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 add the label at front of each basic block and then I can use command 'nm' to find the memory address for each basic block. That's the way I got. I don't know if there is another way to do it. Thanks.
So now I need add label to each basic
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 Oct 17
1
[LLVMdev] question about Insert callInst to call a function in library.
Hi,
Thanks Chris. Following your suggestion, I wrote the code to hide the visible string. Thanks again. Finially, I just realized my LLVM still is 1.2, not 1.3. Now I update it to 1.3.
> > > 5. Insert the for loop that translates the string when main runs.
> > >
> > > For #5, write the for loop you want, compile it with llvmgcc, then figure
> > > out how to
2005 Feb 02
1
[LLVMdev] RE: Question about Global Variable
Thanks for your reply.
After I change Cstr to gI, it compiled successfully. Thanks again.
Another question is for constructing getelementpt.
// C code
char gStrA[10] = "test str"; // here is Global variable,gStrA and initializer "test str"
char gStrB[10]= "test str2";
main(){
int = i;
char *pGVars[20]; // here, the pGVar is for storing the address of each
2004 Sep 21
0
[LLVMdev] Re: Re: How could I get memory address for each assemble
Thanks Andrew.
I still do not understand your method. Would you mind telling me more? Thanks.
But for hash problem, it is common problem for hash. We cannot make sure the mapping is 1 to 1.
I used a way to grab the BB address, but there is some limitation. What I did is that I rewrote some part of disassemble tool. During the disassembling, I check all the conditional/unconditional
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(
2004 Oct 10
1
[LLVMdev] Re: Hide visible string in variable
Hi,
> On Mon, 27 Sep 2004, Zhang Qiuyu wrote:
>
> > Is there a way to modify the string such as char a or char b? Could I
> > use the way like "Replace an instruction with another Value" in Programm
> > Manual? In fact, what I am interested in is string with visible
> > expression, not all string, and I am trying to hide the orignal string
> > by