search for: classllvm_1_1modul

Displaying 8 results from an estimated 8 matches for "classllvm_1_1modul".

Did you mean: classllvm_1_1module
2019 Jan 17
3
LLVM 7.0.1 Error no matching constructor for initialization of SmallVector
Hello With LLVM 4.0 my code is being compiled correctly. but with LLVM 7.0.1 I am getting following error; *llvm-7.0.1.src/include/llvm/IR/Module.h:356:43: error: no matching constructor for initialization of 'SmallVector<llvm::Type *, sizeof...(ArgsTy)>' SmallVector<Type*, sizeof...(ArgsTy)> ArgTys{Args...};* What is the reason? Please help. Thank You
2011 Jul 07
0
[LLVMdev] Filename in dynamically loaded function pass
...ng your pass it really depends on what that compiler passed to the Module constructor. However, if you're using your pass from opt as you've shown (by specifying the file on the command line) then it should produce the name of the input bitcode file. [1]: Doxygen: http://llvm.org/doxygen/classllvm_1_1Module.html#a339f163decf5f2c881937600d1e953fa
2011 Jul 07
2
[LLVMdev] Filename in dynamically loaded function pass
Hi All, I would like to know if there is an API/method that I can use to get the name of the file being processed in a dynamically loaded function pass. In other words, if I invoke a pass as follows opt -load pass.so -hello src.bc -o src.hello.bc where pass.so is a functionpass, I would like to get the filename "src.bc", in the doInitialization/doFinalization method. My intent is to
2013 Sep 10
1
[LLVMdev] Global Variable Recall
Hi All, I need to call global variable by its name from the following code for(Function::iterator i=F->begin();i!=F->end();++i) { BasicBlock*Bb =&*i; GlobalVariable* GV = new GlobalVariable(type,false, F->getLinkage(),0, "F$"+Bb->getName()); GV->setInitializer(Constant::getNullValue (typ)); GList.push_back(GV); } Could I solve that by
2013 Dec 03
1
[LLVMdev] Help with creating and replacing instructions in LLVM
Hi, I have the following instruction in my IR- %call2 = call i8* @strcpy(i8* %1, i8* %2) #2 I intend to change call to strcpy with strncpy. I have included the following code in runOnFunction, so that when it is strcpy's turn to be invoked, strncpy is invoked instead. Assuming I* is the strcpy instruction, CallInst* x=new
2013 Dec 20
0
[LLVMdev] Is sizeof(pointer) known in LLVM IR?
...starting "p[n]:<size>:<abi>:<pref>" The LLVM C++ API for llvm::Module seems to have what you want [2] so I see no reason why you could not have access to this in one of your passes. [1] http://llvm.org/docs/LangRef.html#data-layout [2] http://llvm.org/docs/doxygen/html/classllvm_1_1Module.html#a3f499ddbebdc1456836d7b00a735df26 Hope that helps, Cheers, Dan Liew.
2008 Nov 16
2
[LLVMdev] How do I insert a printf call in the IR?
Thanks a lot Nick -march=cpp was very helpful. But I still have a small problem, I am trying to insert a printf in a transformation pass. So when the original program already has a printf, on executing the transformation pass, it tries to create function "printf1" instead of "printf" Am I missing something here? Thanks again! Mrunal ----- Original Message ----- From:
2016 Jul 27
2
help please: how to sort the contents of a "SymbolTableListTraits<GlobalVariable>"?
...g a comparator class and then using "llvm::iplist< NodeTy, Traits >::sort(Compare comp)" [<http://llvm.org/docs/doxygen/html/classllvm_1_1iplist.html#a81afd2c47bb276cd50c78c74b3f92ec3>], since "llvm::Module::GlobalListType" [<http://llvm.org/docs/doxygen/html/classllvm_1_1Module.html#accd281de11bad056a32f319d7facafe3>] is an alias for "SymbolTableList<GlobalVariable>" and according to the Web-based documentation every instantiation of SymbolTableList [<http://llvm.org/docs/doxygen/html/classllvm_1_1SymbolTableList.html>] is-an instantiation of...