Displaying 20 results from an estimated 21 matches for "inst2".
Did you mean:
inst
2012 Dec 02
1
[LLVMdev] GetElementPtrInst question
...r. I am writing a
ModulePass that insert new instruction to an existing Module.
Besides, how can you get a reference to myreg1 ? Looking at your
snippet this variable would be a llvm::Value* (I saw that in the
documentation of IRBuilder). All I have in my code is something like:
llvm::LoadInst *inst2 = new llvm::LoadInst( oneGlobalVariable,
"myreg1", inst1);
Probably I can get a Value pointer to the output register from the
inst2 variable, but I don't know how (I couldn't figure out myself by
just reading the documentation).
Any help is very welcome,
Eduardo
2009 Sep 11
0
[LLVMdev] [proposal] Extensible IR metadata
I've got a suggestion for a refinement:
Right now, we have classes like DILocation that wrap an MDNode* to
provide more convenient access to it. It would be more convenient for
users if instead of
MDNode *DbgInfo = Inst->getMD(MDKind::DbgTag);
Inst2->setMD(MDKind::DbgTag, DbgInfo);
they could write:
DILocation DbgInfo = Inst->getMD<DILocation>();
inst2->setMD(DbgInfo);
we'd use TheContext->RegisterMDKind<MyKindWrapper>() or
...Register<MyKindWrapper>("name"); to register a new kind. (I prefer...
2019 May 17
3
Copy Function from one LLVM IR file to another
...}
*6.* Replacing each instruction of F2 with instruction from F1 using:
for(Function::iterator bb = F1->begin(), Lbb = F1->end(), bb2 =
F2->begin(), Lbb2 = F2->end(); bb2!=Lbb2; ++bb, ++bb2)
{
for(BasicBlock::iterator inst = bb->begin(), Linst = bb->end(),
inst2 = bb2->begin(), Linst2 = bb2->end(); inst2 != Linst2; ++inst, ++inst2)
{
Instruction* I = &*inst;
Instruction* I2 = &*inst2;
//errs() << "F1's instruction: " << *I << "\n";
//errs() &l...
2003 Nov 24
2
[LLVMdev] Question about Instruction comparison
I have been looking over the doxygen documentation as well as the llvm
code. Is there a standard way to check to see if two instructions are
identical (i.e., Inst1 == Inst2 does not work)?
Thanks,
Brian
Brian M. Fahs
Graduate Student
University of Illinois
2012 Jan 03
2
[LLVMdev] AliasAnalysis and memory dependency
Hi all,
I want to find memory dependency between CallInst instruction and other.
So i used the following code:
* AliasAnalysis &AA=getAnalysis<AliasAnalysis>();*
* if(isa<StoreInst>(inst1)){*
* ** **if(isa<CallInst>(inst2))**{*
* CallInst *call_inst2= dyn_cast<CallInst>(inst2); *
* if(AA.getModRefInfo(inst1,call_inst2)==mod)**{*
* //*
* } *
* }*
* }*
but i get the following error. I should what do for exrtact memory
dependency between CallInst instruction and o...
2003 Nov 24
1
[LLVMdev] Question about Instruction comparison
On Mon, Nov 24, 2003 at 02:13:04PM -0600, Tanya Brethour wrote:
> > I have been looking over the doxygen documentation as well as the
> > llvm code. Is there a standard way to check to see if two
> > instructions are identical (i.e., Inst1 == Inst2 does not work)?
>
> If you want to check if two instructions are the same instruction, you
> should be able to just compare pointers.
Comparing pointers will tell you if they are the SAME instruction. I
think what Brian is looking for is "equivalent" instructions, as I am
famil...
2009 Sep 11
12
[LLVMdev] [proposal] Extensible IR metadata
Devang's work on debug info prompted this, thoughts welcome:
http://nondot.org/sabre/LLVMNotes/ExtensibleMetadata.txt
-Chris
2008 Jul 29
1
[LLVMdev] Memory Dependence Analysis: getNonLocalDependency()
...is
it correct to say that the last dependent instruction in each visited basic
block is what is mapped ? For example, if a basicblock B has two
instructions:
B:
store i32 1, i32* %i, align 4 (say inst1)
...
load i32* %i, align 4 ; <i32>:39 [#uses=1] (say inst2)
and suppose i had one more Store instruction to %i outside B which is the
query, then when B is visited, in the DenseMap only the mapping <B, inst2>
is added and not <B, inst1> ?
I am guessing that this information is sufficient for most code-hoisting
optimizations since just the kno...
2003 Nov 24
0
[LLVMdev] Question about Instruction comparison
> I have been looking over the doxygen documentation as well as the llvm
> code. Is there a standard way to check to see if two instructions are
> identical (i.e., Inst1 == Inst2 does not work)?
If you want to check if two instructions are the same instruction, you
should be able to just compare pointers.
-Tanya
2012 Jul 09
0
[LLVMdev] Possible issue with EXPANDING POST-RA PSEUDO INSTRS
On Jul 8, 2012, at 3:42 PM, Sergei Larin <slarin at codeaurora.org> wrote:
> ********** EXPANDING POST-RA PSEUDO INSTRS **********
> ********** Function: main
> real copy: %R15<def> = COPY %R4, %D2<imp-use,kill>, %D7<imp-use,kill>,
> %D7<imp-def>
> replaced by: %R15<def> = TFR %R4, %D7<imp-def>
>
> The R4 is a subreg of D2 double
2012 Jul 08
2
[LLVMdev] Possible issue with EXPANDING POST-RA PSEUDO INSTRS
Hello everyone,
I am running into an obscure issue with ExpandPostRA. Does anyone
recognizes the following:
The pass replaces a real copy with a "transfer" instruction:
********** EXPANDING POST-RA PSEUDO INSTRS **********
********** Function: main
real copy: %R15<def> = COPY %R4, %D2<imp-use,kill>, %D7<imp-use,kill>,
%D7<imp-def>
replaced by:
2014 Jun 27
3
[LLVMdev] [RFC] Add compiler scheduling barriers
On 24 June 2014 01:55, Philip Reames <listmail at philipreames.com> wrote:
>
> On 06/19/2014 09:35 AM, Yi Kong wrote:
>>
>> Hi all,
>>
>> I'm currently working on implementing ACLE extensions for ARM. There
>> are some memory barrier intrinsics, i.e.__dsb and __isb that require
>> the compiler not to reorder instructions around their
2012 Jan 03
0
[LLVMdev] AliasAnalysis and memory dependency
...a 8664,
> I want to find memory dependency between CallInst instruction and other. So i
> used the following code:
>
>
>
> / AliasAnalysis &AA=getAnalysis<AliasAnalysis>();/
>
> /*if* (isa< StoreInst >(inst1)){ /
>
> // // /*if* (isa<CallInst>(inst2)) / /{/
>
> / CallInst *call_inst2= dyn_cast<CallInst>(inst2); /
>
> /*if* (AA.getModRefInfo(inst1,call_inst2)==mod) / /{/
>
> / ///
>
> / } /
>
> / }/
>
> / }/
>
> but i get the following error. I should what do for...
2012 Dec 02
0
[LLVMdev] GetElementPtrInst question
Hi,
You'd use an IRBuilder, like you did to create your LoadInsts.
IRBuilder<> IRB(BB);
IRB.CreateGEP(myreg1, myreg2);
I assume because you asked this question, something went wrong when using the above method. What was it? :)
Cheers,
James
________________________________________
From: llvmdev-bounces at cs.uiuc.edu [llvmdev-bounces at cs.uiuc.edu] On Behalf Of Eduardo [erocha.ssa
2012 Dec 02
3
[LLVMdev] GetElementPtrInst question
Hi all,
How can I create an llvm::GetElementPtrInst in which the pointer and
the index are in registers previously loaded with llvm::LoadInst ? I
mean, the generated instruction will be like this:
%1 = getelementptr i8* %myreg1, i32 %myreg2
here, %myreg1 and %myreg2 are previously created by load instructions
(llvm::LoadInst).
Please, let me know if there is an example of something similar.
2000 Apr 06
0
Testcase to show the bug in smbclient with tar,ls,mget
...de quiet
tarmode is now full, system, hidden, noreset, quiet
smb: \myinst\> tar c inst1.tar
tar: dumped 632 files and directories
Total bytes written: 182655488
smb: \myinst\> archive 0
smb: \myinst\> tarmode quiet
tarmode is now full, system, hidden, noreset, quiet
smb: \myinst\> tar c inst2.tar
tar: dumped 632 files and directories
Total bytes written: 182858240
smb: \myinst\> archive 0
smb: \myinst\> tarmode quiet
tarmode is now full, system, hidden, noreset, quiet
smb: \myinst\> tar c inst3.tar
tar: dumped 632 files and directories
Total bytes written: 182655488
smb: \myins...
2008 Jul 28
0
[LLVMdev] Memory Dependence Analysis: getNonLocalDependency()
On Jul 28, 2008, at 3:47 PM, Prakash Prabhu wrote:
> Hi,
>
> I have a question about the memory dependence analysis. I am trying
> to use it to selectively enumerate a set of pairs of (load, store)
> instructions for every function by calling getNonLocalDependency()
> on the MemoryDependenceAnalysis. This populates a
> DenseMap<BasicBlock*, Value*>. I just
2009 Sep 11
4
[LLVMdev] [proposal] Extensible IR metadata
...ote:
> I've got a suggestion for a refinement:
>
> Right now, we have classes like DILocation that wrap an MDNode* to
> provide more convenient access to it. It would be more convenient for
> users if instead of
>
> MDNode *DbgInfo = Inst->getMD(MDKind::DbgTag);
> Inst2->setMD(MDKind::DbgTag, DbgInfo);
>
> they could write:
>
> DILocation DbgInfo = Inst->getMD<DILocation>();
> inst2->setMD(DbgInfo);
>
> we'd use TheContext->RegisterMDKind<MyKindWrapper>() or
> ...Register<MyKindWrapper>("name"...
2008 Jul 28
2
[LLVMdev] Memory Dependence Analysis: getNonLocalDependency()
Hi,
I have a question about the memory dependence analysis. I am trying to use
it to selectively enumerate a set of pairs of (load, store) instructions for
every function by calling getNonLocalDependency() on the
MemoryDependenceAnalysis. This populates a DenseMap<BasicBlock*, Value*>. I
just looked up an usage of this in GVN.cpp:
MD->getNonLocalDependency(C, deps);
for
2006 Aug 30
0
read_data: read failure for 4 bytes..
I have people trying to join a domain and they are getting errors. I
have set log level = 2 and below are the logs for that IP.
[2006/08/30 14:38:30, 2] lib/access.c:check_access(324)
Allowed connection from node128.inst2.phs.pcsd (10.20.100.128)
[2006/08/30 14:38:30, 2] smbd/reply.c:reply_special(496)
netbios connect: name1=FILEZILLA name2=09404MATHLAB
[2006/08/30 14:38:30, 2] smbd/reply.c:reply_special(503)
netbios connect: local=filezilla remote=09404mathlab, name type = 0
[2006/08/30 14:38:34, 0] lib...