search for: kadysev

Displaying 19 results from an estimated 19 matches for "kadysev".

2012 Apr 21
4
[LLVMdev] Remove function from module
Thanks, but I replaceAllUsesWith() - works well, but I still get bug in eraseFromParent(): While deleting: i32 (%class.B*, i32)* %_ZN1B1xEi An asserting value handle still pointed to this value! UNREACHABLE executed at /Users/neonomaly/LLVM/LLVM/lib/VMCore/Value.cpp:561! Yours sincerely, Kadysev Mikhail 21.04.2012, в 23:45, Nick Lewycky написал(а): > Михаил wrote: >> How correctly remove function from module? >> For example: >> >> int f1(int x) { >> ... >> a = f2(smth); >> ... >> } >> int f2 (int y) { >> ... >> b = f1(...
2012 Apr 22
2
[LLVMdev] Remove function from module
It is ModulePass with AnalysisUsage of CallGraph Yours sincerely, Kadysev Mikhail 22.04.2012, в 5:20, Nick Lewycky написал(а): > Михаил wrote: >> Thanks, but I replaceAllUsesWith() - works well, but I still get bug in >> eraseFromParent(): >> >> While deleting: i32 (%class.B*, i32)* %_ZN1B1xEi >> An asserting value handle still pointed...
2012 Apr 22
0
[LLVMdev] Remove function from module
Михаил wrote: > It is ModulePass with AnalysisUsage of CallGraph Ah, then you'll need to update the CallGraph first. Use "CG.removeFunctionFromModule(F);" before deleting it. Nick > Yours sincerely, > Kadysev Mikhail > > 22.04.2012, в 5:20, Nick Lewycky написал(а): > >> Михаил wrote: >>> Thanks, but I replaceAllUsesWith() - works well, but I still get bug in >>> eraseFromParent(): >>> >>> While deleting: i32 (%class.B*, i32)* %_ZN1B1xEi >>> An...
2012 Apr 21
0
[LLVMdev] Remove function from module
..."\n"; if (pImpl->ValueHandles[V]->getKind() == Assert) llvm_unreachable("An asserting value handle still pointed to this " value!"); #endif llvm_unreachable("All references to V were not removed?"); } Yours sincerely, Kadysev Mikhail 22.04.2012, в 1:41, Dmitry N. Mikushin написал(а): > Assertion occurs on some different test case? Could you attach its IR-code? > > 22 апреля 2012 г. 1:38 пользователь Михаил <neonomaly.x at gmail.com> написал: >> Yes >> >> Yours sincerely, >> Kad...
2012 Apr 22
0
[LLVMdev] Remove function from module
...o, under what circumstance are you doing this deletion? Is it inside a FunctionPass, or another kind of Pass? Are you using AssertingVH's or calling other code that is? Such as ValueMap's, or some llvm analysis pass which stores an AssertingVH? Nick > > > Yours sincerely, > Kadysev Mikhail > > 21.04.2012, в 23:45, Nick Lewycky написал(а): > >> Михаил wrote: >>> How correctly remove function from module? >>> For example: >>> >>> int f1(int x) { >>> ... >>> a = f2(smth); >>> ... >>> } >&gt...
2012 Feb 09
1
[LLVMdev] Need Help with StructType inheritance
Hi. I have such task: to get information about classes of work program (module) form Module (LLVM class), for example in ModulePass. I tried to analyze source code of LLVM architecture related with Module class, but I have not founded any useful information. Thanks! Yours sincerely, Kadysev Mikhail -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120209/37dbff0e/attachment.html>
2012 Apr 01
1
[LLVMdev] Create Instruction
...new CallInst by CallInst::Create(F1,args,CS.getInstruction()->getName(), rightCall); , where CS - original call site, but new Instruction still haven't same name, but similar as I see.... It is possible to give exactly same name for result if CallInst in my case? Thanks! Yours sincerely, Kadysev Mikhail -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120401/b48fdf52/attachment.html>
2012 May 04
2
[LLVMdev] StructTypes into one
...ocator.0" = type { i8 } %"class.__gnu_cxx::new_allocator.1" = type { i8 } %"class.std::allocator.0.6" = type { i8 } merge into %"class.__gnu_cxx::new_allocator" = type { i8 } %"class.std::allocator" = type { i8 } in module? Thanks! Yours sincerely, Kadysev Mikhail
2012 Apr 21
3
[LLVMdev] Remove function from module
...xample: int f1(int x) { ... a = f2(smth); ... } int f2 (int y) { ... b = f1(smth); ... } I need delete from module both f1 and f2. They haven't uses in other part of module, but I can't delete them with eraseFromParent, because they are use each other. Yours sincerely, Kadysev Mikhail -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120421/8f492716/attachment.html>
2012 Mar 06
2
[LLVMdev] Work with CallSites
...oid (%class.A*, i32)** %8, i64 0 %10 = load void (%class.A*, i32)** %9 Instruction does not dominate all uses! %6 = load %class.A** %a, align 4 call void @_ZN1B4testEi(%class.B* %6, i32 1) Can you tell me how correctly I can use CSn.setCalledFunction(F) in my case. Thanks! Yours sincerely, Kadysev Mikhail -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120306/62b1d497/attachment.html>
2012 Feb 11
1
[LLVMdev] Clang passes
Hi. I've tried to search the way to write a pass for clang like a pass for opt, but I haven't find it. Is it possible? I need to save class inheritance of the program being processed to external file. Thanks! Yours sincerely, Kadysev Mikhail -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120211/e2abf645/attachment.html>
2012 Feb 25
0
[LLVMdev] Clang plugin - save metadata
...n for clang using an example. class PrintInheritanceConsumer : public ASTConsumer { public: virtual void HandleTopLevelDecl(DeclGroupRef DG) { ......... } }; I need to save Metadata for Type or Module into IR, but I can't find a way to do this, can you help me? Thanks! Yours sincerely, Kadysev Mikhail -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120225/6a925ffc/attachment.html>
2012 Mar 02
1
[LLVMdev] IR + Module Pass
Hi. Can I know that in Module *M Function* F is a method of StructType *st? Also can I know that in this StructType the F has mark "virtual"? Thanks! Yours sincerely, Kadysev Mikhail -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120302/5c77c3ee/attachment.html>
2012 Apr 19
1
[LLVMdev] Switch + Addresses of functions
Is it possible to use address of function in case block of switch instruction? I understand that it should be constants only, but in llvm reference i founded that: "The addresses of global variables and functions are always implicitly valid (link-time) constants. " Yours sincerely, Kadysev Mikhail -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120419/bb13c292/attachment.html>
2012 Apr 19
1
[LLVMdev] VTable Method Index
...ss.A* %call to i32 (%class.A*, i32)*** %vtable = load i32 (%class.A*, i32)*** %0 %vfn = getelementptr inbounds i32 (%class.A*, i32)** %vtable, i64 0 %1 = load i32 (%class.A*, i32)** %vfn Is it possible to map pair [StructType, methodIndex(i64 0 in example)] into Function? Yours sincerely, Kadysev Mikhail -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120420/c99fe5fd/attachment.html>
2012 May 04
0
[LLVMdev] StructTypes into one
Hi Михаил, > Is it possible to merge StructTypes with different names like: > > %"class.std::allocator.4" = type { i8 } > %"class.__gnu_cxx::new_allocator.5" = type { i8 } > %"class.std::allocator.0" = type { i8 } > %"class.__gnu_cxx::new_allocator.1" = type { i8 } > %"class.std::allocator.0.6" = type { i8 } > > merge
2012 May 04
0
[LLVMdev] Getting Metadata
...uot;* %storemerge) to label %if.end24 unwind label %lpad, !tbaa !2490 !{metadata !"ISPDIL_MTHD_~IndexWriter"} Question: Why I get data from MD !2494 instead of !2490? P.S. Before this case I have correctly output for CallSite with metadata !2494 Thanks! Yours sincerely, Kadysev Mikhail
2012 May 04
1
[LLVMdev] StructTypes into one
...t; of modules before linking, which when linked result in this. > > Thanks, Duncan. > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > Kadysev Mikhail -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120504/d4aef9e6/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: 1.bc Type: application/octet-str...
2012 Apr 21
0
[LLVMdev] Remove function from module
Михаил wrote: > How correctly remove function from module? > For example: > > int f1(int x) { > ... > a = f2(smth); > ... > } > int f2 (int y) { > ... > b = f1(smth); > ... > } > > I need delete from module both f1 and f2. They haven't uses in other > part of module, but I can't delete them with eraseFromParent, because > they are use each