Displaying 20 results from an estimated 36 matches for "immutablecallsite".
2012 Jan 03
1
[LLVMdev] AliasAnalysis and memory dependency
...t;' failed.
0 opt 0x08537540
1 opt 0x08539a7c
2 libpthread.so.0 0x0080b878
3 libc.so.6 0x0069464a abort + 378
4 libc.so.6 0x0068bde8 __assert_fail + 248
5 opt 0x082b3063
6 opt 0x082b7cad
llvm::AliasAnalysis::getModRefInfo(llvm::ImmutableCallSite,
llvm::ImmutableCallSite) + 61
7 opt 0x082b22e4
8 parallel.so 0x04a5c7c6 parallel::buildDataGraph(llvm::Loop*) + 1542
9 parallel.so 0x04a54e24 parallel::runOnLoop(llvm::Loop*,
llvm::LPPassManager&) + 452
10 opt 0x0831a124
llvm::LPPassManager::runOnFunction(llv...
2015 Jan 19
2
[LLVMdev] [INCOMPLETE] [GC] Support wrapping vararg functions in statepoint
...DAGBuilder.cpp
index a8db35c..29353a6 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -5726,7 +5726,7 @@ SelectionDAGBuilder::lowerInvokable(TargetLowering::CallLoweringInfo &CLI,
}
void SelectionDAGBuilder::LowerCallTo(ImmutableCallSite CS, SDValue Callee,
- bool isTailCall,
+ bool isTailCall, bool isVarArg,
MachineBasicBlock *LandingPad) {
PointerType *PT = cast<PointerType>(CS.getCalledValue()->getType());...
2015 Jul 09
2
[LLVMdev] How to use get the memory location of a function argument correctly?
...he correct memory location more conveniently? Thank you very much!
MemoryLocation
<http://llvm.org/docs/doxygen/html/classllvm_1_1MemoryLocation.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
<ht...
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)**{*
*
2011 Mar 24
0
[LLVMdev] mblaze backend: unreachable executed
...llingConv::ID, bool, bool, llvm::SDValue, std::vector<llvm::TargetLowering::ArgListEntry, std::allocator<llvm::TargetLowering::ArgListEntry> >&, llvm::SelectionDAG&, llvm::DebugLoc) const + 2058
11 llc 0x000000010050733a llvm::SelectionDAGBuilder::LowerCallTo(llvm::ImmutableCallSite, llvm::SDValue, bool, llvm::MachineBasicBlock*) + 2470
12 llc 0x0000000100519d01 llvm::SelectionDAGBuilder::visitCall(llvm::CallInst const&) + 4381
13 llc 0x0000000100522bc4 llvm::SelectionDAGBuilder::visit(unsigned int, llvm::User const&) + 1220
14 llc...
2016 Jan 04
3
Can someone give me some pointer on alias analysis ?
...each the alias analysis that an
> unescaped noalias pointer can't alias the global state allocmemory might
> access. Slightly surprised we don't get this today, but oh well. Take a
> look at the isNonEscapingLocalObject predicate in BasicAA. Then look at
> "getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc)". Double
> check to make sure this is the one that MDA actually calls.
>
>
I don't think this is the problem. When there is only 2 calls to
allocmemory, loads are optimized away as expected. But it seems that the
analysis is confused with 3+ cal...
2011 Mar 24
2
[LLVMdev] mblaze backend: unreachable executed
Hi Josef,
> Okay, I've done a lot more testing and I now have a .bc file that compiles for x86, sparc, mips but refuses to compile for the mblaze and powerPC backends because of the calling convention. Is there anyone that would know how to fix the microblaze calling convention or point me in the right direction on how to fix it?
what does "refuses to compile" mean? I.e. what
2015 Dec 26
2
Can someone give me some pointer on alias analysis ?
I'm trying to fix that bug: https://llvm.org/bugs/show_bug.cgi?id=20049
It turns out this is the kind of optimization that I really need, as when
it isn't done, all kind of other optimizations opportunities down the road
are not realized as they are not exposed.
I have no idea where to start digging for this. I assume there is some kind
of interaction between memory dependency and alias
2015 Aug 14
2
[LLVM RFC] Add llvm.typeid.for intrinsic
...0 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) {
setValue(&I, N);
return nullptr;
}
+ case Intrinsic::typeid_for: {
+ visitTypeidfor(I);
+ return nullptr;
+ }
}
}
@@ -6769,6 +6773,29 @@ void SelectionDAGBuilder::visitPatchpoint(ImmutableCallSite CS,
FuncInfo.MF->getFrameInfo()->setHasPatchPoint();
}
+void SelectionDAGBuilder::visitTypeidfor(const CallInst &CI) {
+ SDValue Res;
+ static std::vector<const StructType *> StructTypes;
+ int ID = -1;
+ Value *PtrArg = CI.getArgOperand(0);
+ PointerType *PTy = cast<P...
2012 Feb 15
2
[LLVMdev] Wrong AliasAnalysis::getModRefInfo result
...lt;AllocaInst>(vPtr) ) {
const Type *t = allo->getAllocatedType();
if ( const ArrayType *at = dyn_cast<ArrayType>(t) ) {
int64_t size = at->getNumElements() *
at->getElementType()->getPrimitiveSizeInBits() / 8;
ImmutableCallSite cs(ci);
AliasAnalysis::Location loc(v, size);
errs() << AA.getModRefInfo(ci, loc) << "\n";
}
}
}
}
}
}
return false;
}
However, the result is "3" for bo...
2011 Mar 15
3
[LLVMdev] mblaze backend: unreachable executed
...llingConv::ID, bool, bool, llvm::SDValue, std::vector<llvm::TargetLowering::ArgListEntry, std::allocator<llvm::TargetLowering::ArgListEntry> >&, llvm::SelectionDAG&, llvm::DebugLoc) const + 4269
10 llc 0x00000001004d1c0b llvm::SelectionDAGBuilder::LowerCallTo(llvm::ImmutableCallSite, llvm::SDValue, bool, llvm::MachineBasicBlock*) + 2363
11 llc 0x00000001004e6dc9 llvm::SelectionDAGBuilder::visitCall(llvm::CallInst const&) + 185
12 llc 0x00000001004c8828 llvm::SelectionDAGBuilder::visit(unsigned int, llvm::User const&) + 600
13 llc...
2012 May 16
2
[LLVMdev] NVPTX: __iAtomicCAS support ?
...onv::ID, bool, bool,
bool, llvm::SDValue, std::vector<llvm::TargetLowering::ArgListEntry,
std::allocator<llvm::TargetLowering::ArgListEntry> >&,
llvm::SelectionDAG&, llvm::DebugLoc) const + 2120
8 libLLVM-3.2svn.so 0x00007f4773807199
llvm::SelectionDAGBuilder::LowerCallTo(llvm::ImmutableCallSite,
llvm::SDValue, bool, llvm::MachineBasicBlock*) + 2913
9 libLLVM-3.2svn.so 0x00007f477381b3af
llvm::SelectionDAGBuilder::visitCall(llvm::CallInst const&) + 9681
10 libLLVM-3.2svn.so 0x00007f477382abee
llvm::SelectionDAGBuilder::visit(unsigned int, llvm::User const&) +
1044
11 libLLVM-3.2sv...
2011 May 07
0
[LLVMdev] Question about linking llvm-mc when porting a new backend
...ectionDAG.cpp.o)
llvm::SelectionDAG::CreateStackTemporary(llvm::EVT, llvm::EVT)in
libLLVMSelectionDAG.a(SelectionDAG.cpp.o)
llvm::SelectionDAG::CreateStackTemporary(llvm::EVT, unsigned int)in
libLLVMSelectionDAG.a(SelectionDAG.cpp.o)
llvm::SelectionDAGBuilder::visitInlineAsm(llvm::ImmutableCallSite)
in libLLVMSelectionDAG.a(SelectionDAGBuilder.cpp.o)
llvm::SelectionDAGBuilder::LowerCallTo(llvm::ImmutableCallSite,
llvm::SDValue, bool, llvm::MachineBasicBlock*)in
libLLVMSelectionDAG.a(SelectionDAGBuilder.cpp.o)
llvm::SelectionDAGBuilder::visitAlloca(llvm::AllocaInst const&)in
li...
2012 Jan 24
0
[LLVMdev] Build Failures
...Analysis/AliasAnalysisCounter.cpp:130:15: note: 'AliasString' was declared here
[off-opt] : [llvm] /ptmp/dag/llvm/official/llvm/lib/Analysis/AliasAnalysisCounter.cpp: In member function 'virtual llvm::AliasAnalysis::ModRefResult {anonymous}::AliasAnalysisCounter::getModRefInfo(llvm::ImmutableCallSite, const llvm::AliasAnalysis::Location&)':
[off-opt] : [llvm] /ptmp/dag/llvm/official/llvm/lib/Analysis/AliasAnalysisCounter.cpp:165:15: error: 'MRString' may be used uninitialized in this function [-Werror=uninitialized]
[off-opt] : [llvm] /ptmp/dag/llvm/official/llvm/lib/Targ...
2012 May 16
0
[LLVMdev] NVPTX: __iAtomicCAS support ?
...bool, llvm::SDValue, std::vector<llvm::TargetLowering::ArgListEntry,
> std::allocator<llvm::TargetLowering::ArgListEntry> >&,
> llvm::SelectionDAG&, llvm::DebugLoc) const + 2120
> 8 libLLVM-3.2svn.so 0x00007f4773807199
> llvm::SelectionDAGBuilder::LowerCallTo(llvm::ImmutableCallSite,
> llvm::SDValue, bool, llvm::MachineBasicBlock*) + 2913
> 9 libLLVM-3.2svn.so 0x00007f477381b3af
> llvm::SelectionDAGBuilder::visitCall(llvm::CallInst const&) + 9681
> 10 libLLVM-3.2svn.so 0x00007f477382abee
> llvm::SelectionDAGBuilder::visit(unsigned int, llvm::User const&...
2011 Mar 24
0
[LLVMdev] mblaze backend: unreachable executed
...llingConv::ID, bool, bool, llvm::SDValue, std::vector<llvm::TargetLowering::ArgListEntry, std::allocator<llvm::TargetLowering::ArgListEntry> >&, llvm::SelectionDAG&, llvm::DebugLoc) const + 2058
11 llc 0x000000010050733a llvm::SelectionDAGBuilder::LowerCallTo(llvm::ImmutableCallSite, llvm::SDValue, bool, llvm::MachineBasicBlock*) + 2470
12 llc 0x0000000100519d01 llvm::SelectionDAGBuilder::visitCall(llvm::CallInst const&) + 4381
13 llc 0x0000000100522bc4 llvm::SelectionDAGBuilder::visit(unsigned int, llvm::User const&) + 1220
14 llc...
2016 Jan 27
2
Skip redundant checks in AliasSet::aliasesUnknownInst
On 01/27/2016 07:53 AM, Daniel Berlin wrote:
>
>
> On Wed, Jan 27, 2016 at 1:27 AM, Roman Gareev <gareevroman at gmail.com
> <mailto:gareevroman at gmail.com>> wrote:
>
> Thank you for the idea! Could you please explain it?
>
>
> Which part are you having trouble with, so i know where to concetrate?
>
> If I’m not
> mistaken, you advise
2016 Aug 29
2
GVN / Alias Analysis issue with llvm.masked.scatter/gather intrinsics
this is definitely a bug in AA.
225 for (auto I = CS2.arg_begin(), E = CS2.arg_end(); I != E; ++I) {
226 const Value *Arg = *I;
227 if (!Arg->getType()->isPointerTy())
-> 228 continue;
229 unsigned CS2ArgIdx = std::distance(CS2.arg_begin(), I);
230 auto CS2ArgLoc = MemoryLocation::getForArgument(CS2,
CS2ArgIdx, TLI);
2011 Mar 15
0
[LLVMdev] mblaze backend: unreachable executed
...llvm::SDValue, std::vector<llvm::TargetLowering::ArgListEntry,
> std::allocator<llvm::TargetLowering::ArgListEntry> >&,
> llvm::SelectionDAG&, llvm::DebugLoc) const + 4269
> 10 llc 0x00000001004d1c0b
> llvm::SelectionDAGBuilder::LowerCallTo(llvm::ImmutableCallSite,
> llvm::SDValue, bool, llvm::MachineBasicBlock*) + 2363
> 11 llc 0x00000001004e6dc9
> llvm::SelectionDAGBuilder::visitCall(llvm::CallInst const&) + 185
> 12 llc 0x00000001004c8828
> llvm::SelectionDAGBuilder::visit(unsigned int, llvm::User const...