similar to: [LLVMdev] Re: RE:RE: Question about inserting instructions

Displaying 20 results from an estimated 1000 matches similar to: "[LLVMdev] Re: RE:RE: Question about inserting instructions"

2005 May 12
0
[LLVMdev] RE:RE: Question about inserting instructions
Hi, Thanks again. >>> during step 2, we read *.bc code and find dummy BB and put some >>> meaningless machinecode, here, we cannot put some illegal machince >>> code, otherwise, step 3 goes to fail. >> >> Yes, you are correct -- if you want to create illegal code you need to >> not use system as. What you need is the ability for llc to create
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
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
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
2005 Feb 03
0
[LLVMdev] question about compile path
Qiuyu Zhang wrote: > 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. This should be possible. The easiest way to do this is to copy one of the samples in llvm/projects (such as
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
2007 Nov 08
3
'a' extension
Is there any way to see the called number when a call gets redirected to the 'a' extension from voicemail? Say x123 calls x456 and it rolls to voicemail. x123 hits * and gets dumped into the 'a' extension in the original context. I need some logic in 'a' to do a database lookup based on the original called number (x456). Any ideas? When I do a test, it appears
2009 Feb 24
2
Problem about plot scale
There are 4 sets of array, each have 2 dimension data:x,y. And these data comes from bkde. I tried to plot them in one figure, but details of some lines, like peak and where it locate, have diminished since one set of array have fairly high y value.And another array have lots of y value near zero, like 1e-20, 1e-10, like a long tail, while the highest y value of these arrays is 1e-4. Does R have
2007 Dec 17
2
Music On Hold
Hello everyone, I am having a bit of problem getting MusicOnhold to play. I am running Asterisk 1.4 with MPG123 0.59 installed. And here's what i see in the debugging window of asterisk: -- Started music on hold, class 'default', on channel 'SIP/x123-082043d0' -- Stopped music on hold on SIP/x123-082043d0 Any idea why it is not playing the file at all? thanks
2005 Sep 08
5
data manipulation
Dear All, I would be grateful if you can help me. My problem is the following: I have a data set like: ID time X1 X2 1 1 x111 x211 1 2 x112 x212 2 1 x121 x221 2 2 x122 x222 2 3 x123 x223 where X1 and X2 are 2 covariates and "time" is the time of observation and ID indicates the
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 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
2005 May 06
1
[LLVMdev] initialize 'dag' variable and interpret asmstring in tablegen .td file
The macro $src, $dest used in Instruction::AsmString must be "declared" in Instruction::OperandList, right? $$ has special meaning? On 5/6/05, Chris Lattner <sabre at nondot.org> wrote: > On Fri, 6 May 2005, Tzu-Chien Chiu wrote: > > llvm/lib/Target/X86/X86InstrInfo.td: > > class X86Inst<bits<8> opcod, Format f, ImmType i, dag ops, string > >
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
2005 May 06
2
[LLVMdev] initialize 'dag' variable and interpret asmstring in tablegen .td file
llvm/lib/Target/X86/X86InstrInfo.td: class X86Inst<bits<8> opcod, Format f, ImmType i, dag ops, string AsmStr> : Instruction { .... dag OperandList = ops; string AsmString = AsmStr; } def MOV32mi : Ii32<0xC7, MRM0m, (ops i32mem:$dst, i32imm:$src), "mov{l} {$src, $dst|$dst, $src}">; I cannot find any document on initializing the
2005 May 06
0
[LLVMdev] initialize 'dag' variable and interpret asmstring in tablegen .td file
On Fri, 6 May 2005, Tzu-Chien Chiu wrote: > llvm/lib/Target/X86/X86InstrInfo.td: > class X86Inst<bits<8> opcod, Format f, ImmType i, dag ops, string > AsmStr> : Instruction { > .... > dag OperandList = ops; > string AsmString = AsmStr; > } > > def MOV32mi : Ii32<0xC7, MRM0m, (ops i32mem:$dst, i32imm:$src), > "mov{l}
2004 Dec 03
2
PROPOSAL: --link-hash-dest, additional linking of files to their HASH values
I'm using the excellent --link-dest option on rsync to do every-day full backups of a number of servers. These servers share most of the file-system content, but of course has some variations. In order to reduce the space used for each backup, I was thinking about linking all files in the backups to their hash in a separate directory, allowing only one storage of each file-value, reducing
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
2012 Jul 05
0
[LLVMdev] bug in tablegen?
This variant works: class ArithLogicRTest16<string I, SDNode OpNode, bit isComm = 0>: FRRR16<!cast<FRRR16_ins>(I).f, (outs CPU16Regs:$rx), (ins CPU16Regs:$ry, CPU16Regs:$rz), // !cast<FRRR16_ins>(I).OutOperandList, // !cast<FRRR16_ins>(I).InOperandList, !cast<FRRR16_ins>(I).AsmString, [(set CPU16Regs:$rx,