search for: callsitebase

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

2018 Sep 12
2
CallSiteBase::getCalledFunction and non-trivial calls
How does LLVM define "indirect call"? The documentation of CallSiteBase::getCalledFunction claims it returns null for indirect calls, but in practice it seems to return null for "non-trivial" calls. For example, it returns null for a direct call to a bitcast'ed function: %0 = call void bitcast (void (%struct.foo *)* @func to void (%struct.bar *)*)(%st...
2018 Sep 12
2
CallSiteBase::getCalledFunction and non-trivial calls
...rify the docs, because until you explained it I had a different definition of "indirect call" in mind. Scott On 2018-09-12 15:21, Friedman, Eli wrote: > On 9/12/2018 11:51 AM, via llvm-dev wrote: >> How does LLVM define "indirect call"? The documentation of >> CallSiteBase::getCalledFunction claims it returns null for indirect >> calls, but in practice it seems to return null for "non-trivial" >> calls. For example, it returns null for a direct call to a bitcast'ed >> function: >> >> %0 = call void bitcast (void (%struc...
2012 Jan 03
1
[LLVMdev] AliasAnalysis and memory dependency
i am sorry, i get this error: opt: /home/llvm/src/include/llvm/Support/CallSite.h:87: ValTy* llvm::CallSiteBase<FunTy, ValTy, UserTy, InstrTy, CallTy, InvokeTy, IterTy>::getCalledValue() const [with FunTy = const llvm::Function, ValTy = const llvm::Value, UserTy = const llvm::User, InstrTy = const llvm::Instruction, CallTy = const llvm::CallInst, InvokeTy = const llvm::InvokeInst, IterTy = const llvm::...
2012 Jan 03
0
[LLVMdev] AliasAnalysis and memory dependency
Hi neda 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); /
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)**{* *
2014 Jun 12
3
[LLVMdev] Creating and implementing an analysis group out of tree
Hi Eli, Thanks for the link! I'm able to compile a standalone pass outside of the source tree, and I'm obviously ably to compile analysis groups inside the source tree. However, the problem comes when I try to do what the tutorial suggests to create an analysis group outside of the source tree. My understanding is that building out of tree requires different methods to register the
2011 Jun 16
3
[LLVMdev] ARM support status (GHC/ARM new calling convention)
...nv::GHC, isTailCall=false, isReturnValueUsed=false, Callee={Node = 0x92d1c60, ResNo = 0}, Args=@0x80468d0, DAG=@0x92bdea8, dl={LineCol = 0, ScopeIdx = 0}) at SelectionDAGBuilder.cpp:6135 #8 0x08ae73df in llvm::SelectionDAGBuilder::LowerCallTo (this=0x92be358, CS= {<llvm::CallSiteBase<const llvm::Function,const llvm::Value,const llvm::User,const llvm::Instruction,const llvm::CallInst,const llvm::InvokeInst,const llvm::Use*>> = {I = {Value = 153830658}}, <No data fields>}, Callee={Node = 0x92d1c60, ResNo = 0}, isTailCall=true, LandingPad=0x0) at SelectionD...
2019 Dec 18
5
RFC: Opaque pointer status and future direction
...AllocatedType 23 llvm::CallInst 23 llvm::BTFDebug::processGlobals 21 llvm::CallSiteBase 20 llvm::coro::Shape::getResumeFunctionType 20 cloneInstructionWithNewAddressSpace 14 llvm::Fun...