search for: classunsigned

Displaying 7 results from an estimated 7 matches for "classunsigned".

2017 Jan 20
2
Get Num of Uses in only dominated blocks?
Hi all, I am doing a project that requires counting the number of uses of a value only in all dominated blocks in a function. I checked the manual for llvm::User class, but only get this unsigned <http://llvm.org/test-doxygen/api/classunsigned.html> getNumUses <http://llvm.org/test-doxygen/api/classllvm_1_1Value.html#a380559e99b47632a34f74de7c1d03cc0> () const This gives me all the uses of a value. Is there any simple way, like an API to do this? Or I have to manually write a method to traverse dominated basic blocks and count...
2012 Jan 27
3
[LLVMdev] How to get the string value?
Thanks Duncan, Yes, it is a ConstantExpr! Thank you! Now trying to find a clue in ConstantExpr's functions to get that string :-) Regards, Welson On Thu, Jan 26, 2012 at 9:04 PM, Duncan Sands <baldrick at free.fr> wrote: > Hi Welson Sun, > > > Hi, if I have some LLVM code like this: > > > > @.str = private unnamed_addr constant [7 x i8]
2015 Jul 09
2
[LLVMdev] How to use get the memory location of a function argument correctly?
...on.html> MemoryLocation::getForArgument <http://llvm.org/docs/doxygen/html/classllvm_1_1MemoryLocation.html#a09ad77e77770d1e517466a7345227ccc> (ImmutableCallSite <http://llvm.org/docs/doxygen/html/classllvm_1_1ImmutableCallSite.html> CS, unsigned <http://llvm.org/docs/doxygen/html/classunsigned.html> ArgIdx,const <http://llvm.org/docs/doxygen/html/AArch64PromoteConstant_8cpp.html#a90f8350fecae261c25be85d38b451bff> TargetLibraryInfo <http://llvm.org/docs/doxygen/html/classllvm_1_1TargetLibraryInfo.html> & TLI )[static] Shen -------------- next part -------------- An HTM...
2018 Sep 04
2
Replacing a function from one module into another one
...first argument of foo3, and so on), however, apparently there's no transformation from a llvm::Attribute to a llvm::Value. I'm using the function getAttribute <http://llvm.org/doxygen/classllvm_1_1Function.html#ab2a5fc8baaee7e74dbe47d848508745a> (unsigned <http://llvm.org/doxygen/classunsigned.html> i, StringRef <http://llvm.org/doxygen/classllvm_1_1StringRef.html> Kind <http://llvm.org/doxygen/ARMAsmParser_8cpp.html#a5ec5335889cd241b0ccfd4e4e58cf52e> ) const <http://llvm.org/doxygen/AArch64PromoteConstant_8cpp.html#a90f8350fecae261c25be85d38b451bff> to get the attri...
2018 Sep 06
2
Replacing a function from one module into another one
...>> however, apparently there's no transformation from a llvm::Attribute to a >> llvm::Value. I'm using the function getAttribute >> <http://llvm.org/doxygen/classllvm_1_1Function.html#ab2a5fc8baaee7e74dbe47d848508745a> >> (unsigned <http://llvm.org/doxygen/classunsigned.html> i, StringRef >> <http://llvm.org/doxygen/classllvm_1_1StringRef.html> Kind >> <http://llvm.org/doxygen/ARMAsmParser_8cpp.html#a5ec5335889cd241b0ccfd4e4e58cf52e> >> ) const >> <http://llvm.org/doxygen/AArch64PromoteConstant_8cpp.html#a90f8350fecae261c2...
2018 Sep 06
2
Replacing a function from one module into another one
...ently there's no transformation from a llvm::Attribute to a >>>> llvm::Value. I'm using the function getAttribute >>>> <http://llvm.org/doxygen/classllvm_1_1Function.html#ab2a5fc8baaee7e74dbe47d848508745a> >>>> (unsigned <http://llvm.org/doxygen/classunsigned.html> i, StringRef >>>> <http://llvm.org/doxygen/classllvm_1_1StringRef.html> Kind >>>> <http://llvm.org/doxygen/ARMAsmParser_8cpp.html#a5ec5335889cd241b0ccfd4e4e58cf52e> >>>> ) const >>>> <http://llvm.org/doxygen/AArch64PromoteConst...
2018 Sep 03
2
Replacing a function from one module into another one
Thank you Ahmad, I figured out that, although the type of both p(oInst) and p(nInst) were the same, I had to: for (unsigned int i = 0; i < callOInst->getNumArgOperands(); i++) { callOInst->getArgOperand(i)->mutateType(callNInst->getArgOperand(i)->getType()); } that solves the issue at the calling instruction in the main function, but now I see that *linkModules* does not work