search for: instvisitor

Displaying 20 results from an estimated 73 matches for "instvisitor".

2009 Apr 14
3
[LLVMdev] InstVisitor Example
On Apr 14, 2009, at 1:49 PM, Luke Dalessandro wrote: > > On Apr 14, 2009, at 12:48 PM, Brice Lin wrote: > >> I just read the LLVM Programmer's Manual, which mentions (but >> specifically does not include any details of) the InstVisitor >> template. Could someone please provide an example of how to use this >> template to find (as an example) all CallSites for the function >> strcpy? > > If this is really what you want to do, then the easiest method is to > just get the declaration of the strcpy function...
2009 Apr 14
2
[LLVMdev] InstVisitor Example
I just read the LLVM Programmer's Manual, which mentions (but specifically does not include any details of) the InstVisitor template. Could someone please provide an example of how to use this template to find (as an example) all CallSites for the function strcpy? Thanks, Brice Lin
2009 Apr 14
0
[LLVMdev] InstVisitor Example
...nherits from ModulePass, currently iterates through the Module, Functions, and BasicBlocks multiple times (once to find strcpy, another to find strcat, and so on for various other functions). If I only care about the direct calls, would I benefit more from switching to multiple use_iterators or the InstVisitor template? - Brice On Tue, Apr 14, 2009 at 1:13 PM, Luke Dalessandro <luked at cs.rochester.edu> wrote: > > On Apr 14, 2009, at 1:49 PM, Luke Dalessandro wrote: > > I guess I should note that the "use iteration" will only work for > direct calls. If you are concerned...
2009 Apr 14
0
[LLVMdev] InstVisitor Example
On Apr 14, 2009, at 12:48 PM, Brice Lin wrote: > I just read the LLVM Programmer's Manual, which mentions (but > specifically does not include any details of) the InstVisitor > template. Could someone please provide an example of how to use this > template to find (as an example) all CallSites for the function > strcpy? If this is really what you want to do, then the easiest method is to just get the declaration of the strcpy function, and iterate over its...
2006 Apr 13
0
[LLVMdev] Re: Creating Release 1.7 Branch at 1:00pm PDT
...[0x7e77d5] > /lib/tls/libc.so.6(abort+0xe9)[0x7e9149] > /lib/tls/libc.so.6(__assert_fail+0x101)[0x7e0db1] > gccas(llvm::Function::getIntrinsicID() const+0x6df)[0x8469d75] > gccas((anonymous namespace)::Verifier::visitCallInst > (llvm::CallInst&)+0x51b)[0x8485ebd] > gccas(llvm::InstVisitor<(anonymous namespace)::Verifier, > void>::visitCall(llvm::CallInst&)+0x18)[0x84f09b2] > gccas(llvm::InstVisitor<(anonymous namespace)::Verifier, void>::visit > (llvm::Instruction&)+0x2e0)[0x84f15f2] > gccas(void llvm::InstVisitor<(anonymous namespace)::Verifier, &...
2014 Jul 07
4
[LLVMdev] Splitting basic block results in unknown instruction type assertion
...ing to do is add a runtime check after all call instructions. To do this I would (eventually) like to add a branch to an "error" block that aborts the program. However, in trying to insert a new block after each call site, I encountered this issue. The problem I'm seeing is an InstVisitor assertion failure ("UNREACHABLE executed" and "Unknown instruction type encountered") after splitting a basic block. Here is a method to reproduce the issue: // -------------------- Test.cpp #include "llvm/IR/Module.h" #include "llvm/Pass.h&qu...
2014 Jan 09
2
[LLVMdev] InstVisitor usage problem
Hi.All I had a problem in using llvm::InstVisitor class, my pass is like that: using namespace llvm; namespace { class InstVisit : public ModulePass, public InstVisitor<InstVisit> { public : static char ID; InstVisit():ModulePass(ID){} virtual bool runOnModule(Module &M) { visit(M); return false; }...
2013 Sep 22
1
[LLVMdev] DebugIR pass fails with an assert
.../home/kolkhovskiy/3rdparty/llvm/lib/Transforms/Instrumentation/DebugIR.cpp:441 #10 0x00007ffff2ec729f in (anonymous namespace)::DIUpdater::visitFunction (this=0x7fffffffd530, F=...) at /home/kolkhovskiy/3rdparty/llvm/lib/Transforms/Instrumentation/DebugIR.cpp:196 #11 0x00007ffff2eca2cc in llvm::InstVisitor<{anonymous}::DIUpdater, void>::visit(llvm::Function &) ( this=0x7fffffffd530, F=...) at /home/kolkhovskiy/3rdparty/llvm/include/llvm/InstVisitor.h:102 #12 0x00007ffff2eca1d7 in llvm::InstVisitor<{anonymous}::DIUpdater, void>::visit<llvm::ilist_iterator<llvm::Function> &...
2006 Apr 13
2
[LLVMdev] Re: Creating Release 1.7 Branch at 1:00pm PDT
...libc.so.6(abort+0xe9)[0x7e9149] > > /lib/tls/libc.so.6(__assert_fail+0x101)[0x7e0db1] > > gccas(llvm::Function::getIntrinsicID() const+0x6df)[0x8469d75] > > gccas((anonymous namespace)::Verifier::visitCallInst > > (llvm::CallInst&)+0x51b)[0x8485ebd] > > gccas(llvm::InstVisitor<(anonymous namespace)::Verifier, > > void>::visitCall(llvm::CallInst&)+0x18)[0x84f09b2] > > gccas(llvm::InstVisitor<(anonymous namespace)::Verifier, void>::visit > > (llvm::Instruction&)+0x2e0)[0x84f15f2] > > gccas(void llvm::InstVisitor<(anonymous nam...
2008 Mar 04
0
[LLVMdev] Deleting Instructions after Intrinsic Creation
...V4=0x0) at Verifier.cpp:292 #7 0x08636ba2 in (anonymous namespace)::Verifier::visitInstruction (this=0x8794f18, I=@0x877b488) at Verifier.cpp:1077 #8 0x08637807 in (anonymous namespace)::Verifier::visitAllocationInst (this=0x8794f18, AI=@0x877b488) at Verifier.cpp:1037 #9 0x0863d75e in llvm::InstVisitor<(anonymous namespace)::Verifier, void>::visitAllocaInst (this=0x8794f18, I=@0x877b488) at /work/aditya/llvm-2.2/include/llvm/Support/InstVisitor.h:173 #10 0x0863d778 in llvm::InstVisitor<(anonymous namespace)::Verifier, void>::visitAlloca (this=0x8794f18, I=@0x877b488) at /work/adit...
2008 Mar 10
0
[LLVMdev] Verifier Error
...a/llvm-2.2/include/llvm/AbstractTypeUser.h:149 #2 0x0837cadc in llvm::Value::getType (this=0x0) at /work/aditya/llvm-2.2/include/llvm/Value.h:87 #3 0x08637b52 in (anonymous namespace)::Verifier::visitBinaryOperator (this=0x8794f18, B=@0x87994a8) at Verifier.cpp:905 #4 0x0863d81e in llvm::InstVisitor<(anonymous namespace)::Verifier, void>::visitAdd (this=0x8794f18, I=@0x87994a8) at /work/aditya/llvm-2.2/include/llvm/Instruction.def:107 #5 0x0863de16 in llvm::InstVisitor<(anonymous namespace)::Verifier, void>::visit (this=0x8794f18, I=@0x87994a8) at /work/aditya/llvm-2.2/inclu...
2008 Mar 04
1
[LLVMdev] Deleting Instructions after Intrinsic Creation
...x0, V4=0x0) at Verifier.cpp:292 #7 0x08636ba2 in (anonymous namespace)::Verifier::visitInstruction (this=0x8794f18, I=@0x877b488) at Verifier.cpp:1077 #8 0x08637807 in (anonymous namespace)::Verifier::visitAllocationInst (this=0x8794f18, AI=@0x877b488) at Verifier.cpp:1037 #9 0x0863d75e in llvm::InstVisitor<(anonymous namespace)::Verifier, void>::visitAllocaInst (this=0x8794f18, I=@0x877b488) at /work/aditya/llvm-2.2/include/llvm/Support/InstVisitor.h:173 #10 0x0863d778 in llvm::InstVisitor<(anonymous namespace)::Verifier, void>::visitAlloca (this=0x8794f18, I=@0x877b488) at /work/aditya/l...
2006 Apr 13
3
[LLVMdev] Re: Creating Release 1.7 Branch at 1:00pm PDT
...ib/tls/libc.so.6(gsignal+0x55)[0x7e77d5] /lib/tls/libc.so.6(abort+0xe9)[0x7e9149] /lib/tls/libc.so.6(__assert_fail+0x101)[0x7e0db1] gccas(llvm::Function::getIntrinsicID() const+0x6df)[0x8469d75] gccas((anonymous namespace)::Verifier::visitCallInst (llvm::CallInst&)+0x51b)[0x8485ebd] gccas(llvm::InstVisitor<(anonymous namespace)::Verifier, void>::visitCall(llvm::CallInst&)+0x18)[0x84f09b2] gccas(llvm::InstVisitor<(anonymous namespace)::Verifier, void>::visit (llvm::Instruction&)+0x2e0)[0x84f15f2] gccas(void llvm::InstVisitor<(anonymous namespace)::Verifier, void>::visit<ll...
2006 Apr 13
0
[LLVMdev] Re: Creating Release 1.7 Branch at 1:00pm PDT
...+0xe9)[0x7e9149] >>> /lib/tls/libc.so.6(__assert_fail+0x101)[0x7e0db1] >>> gccas(llvm::Function::getIntrinsicID() const+0x6df)[0x8469d75] >>> gccas((anonymous namespace)::Verifier::visitCallInst >>> (llvm::CallInst&)+0x51b)[0x8485ebd] >>> gccas(llvm::InstVisitor<(anonymous namespace)::Verifier, >>> void>::visitCall(llvm::CallInst&)+0x18)[0x84f09b2] >>> gccas(llvm::InstVisitor<(anonymous namespace)::Verifier, void>::visit >>> (llvm::Instruction&)+0x2e0)[0x84f15f2] >>> gccas(void llvm::InstVisitor<(a...
2006 May 31
1
[LLVMdev] InstVisitor: RetType
Hi, the docs for InstVisitor say that if RetType != void, one has to override visitInstruction. What is the reason for that? It's valid to define visitInstruction like that: RetTy visitInstruction(Instruction &I) { return RetTy(); } so assuming RetTy has a sensible default constructor, user won't need to over...
2006 Apr 13
0
[LLVMdev] Re: Creating Release 1.7 Branch at 1:00pm PDT
Branches have been created. You are free to checkin to cvs head again. I'll send mail once I have the prerelease tar balls up. Please continue to review and revise the documentation. I can fold this into the release later. Thanks, Tanya On Thu, 13 Apr 2006, Tanya Lattner wrote: > > I will be creating the release branch at 1:00pm PDT. Please refrain from > checking in from
2006 Apr 13
3
[LLVMdev] Creating Release 1.7 Branch at 1:00pm PDT
I will be creating the release branch at 1:00pm PDT. Please refrain from checking in from 1:00-1:30pm. I will send email once I am done. Thanks, Tanya
2013 Aug 20
2
[LLVMdev] Trying to run qt app compiled to bit code Assertion failed: (Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!")
...ype*) + 997 19 lli               0x0000000101a6de39 (anonymous namespace)::DIUpdater::createFunctionSignature(llvm::Function const*) + 249 20 lli               0x0000000101a6adca (anonymous namespace)::DIUpdater::visitFunction(llvm::Function&) + 122 21 lli               0x0000000101a6ad17 llvm::InstVisitor<(anonymous namespace)::DIUpdater, void>::visit(llvm::Function&) + 39 22 lli               0x0000000101a6ace5 void llvm::InstVisitor<(anonymous namespace)::DIUpdater, void>::visit<llvm::ilist_iterator<llvm::Function> >(llvm::ilist_iterator<llvm::Function>, llvm::ili...
2010 Nov 03
4
[LLVMdev] Fw: Forcing the Interpreter segfaults
...LVM in debug mode. Here are the informations of the segfault : memcpy() at 0x7ffff6f6581e LoadIntFromMemory() at ExecutionEngine.cpp:887 0xb3c297 llvm::ExecutionEngine::LoadValueFromMemory() at ExecutionEngine.cpp:915 0xb3c3f9 llvm::Interpreter::visitLoadInst() at Execution.cpp:812 0xa1f855 llvm::InstVisitor<llvm::Interpreter, void>::visitLoad() at 0xa28357 llvm::InstVisitor<llvm::Interpreter, void>::visit() at 0xa26b4e llvm::Interpreter::run() at Execution.cpp:1,328 0xa235ff llvm::Interpreter::runFunction() at Interpreter.cpp:95 0xa166fa .... So the segfaults happens because of the memcp...
2013 Aug 20
0
[LLVMdev] Trying to run qt app compiled to bit code Assertion failed: (Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!")
...ype*) + 997 19 lli 0x0000000101a6de39 (anonymous namespace)::DIUpdater::createFunctionSignature(llvm::Function const*) + 249 20 lli 0x0000000101a6adca (anonymous namespace)::DIUpdater::visitFunction(llvm::Function&) + 122 21 lli 0x0000000101a6ad17 llvm::InstVisitor<(anonymous namespace)::DIUpdater, void>::visit(llvm::Function&) + 39 22 lli 0x0000000101a6ace5 void llvm::InstVisitor<(anonymous namespace)::DIUpdater, void>::visit<llvm::ilist_iterator<llvm::Function> >(llvm::ilist_iterator<llvm::Function>, llvm::ili...