Searched refs:CS (Results 1 - 25 of 146) sorted by relevance

123456

/freebsd-10.0-release/contrib/llvm/lib/Analysis/
H A DLibCallAliasAnalysis.cpp46 ImmutableCallSite CS,
69 LibCallLocationInfo::LocResult Res = LocInfo.isLocation(CS, Loc);
90 LibCallLocationInfo::LocResult Res = LocInfo.isLocation(CS, Loc);
120 LibCallAliasAnalysis::getModRefInfo(ImmutableCallSite CS, argument
127 if (const Function *F = CS.getCalledFunction()) {
129 MRInfo = ModRefResult(MRInfo & AnalyzeLibCallDetails(FI, CS, Loc));
136 return (ModRefResult)(MRInfo | AliasAnalysis::getModRefInfo(CS, Loc));
45 AnalyzeLibCallDetails(const LibCallFunctionInfo *FI, ImmutableCallSite CS, const Location &Loc) argument
H A DCodeMetrics.cpp33 ImmutableCallSite CS(cast<Instruction>(II));
35 if (const Function *F = CS.getCalledFunction()) {
39 if (!CS.isNoInline() && F->hasInternalLinkage() && F->hasOneUse())
54 if (!isa<InlineAsm>(CS.getCalledValue()))
H A DCaptureTracking.cpp109 CallSite CS(I);
113 if (CS.onlyReadsMemory() && CS.doesNotThrow() && I->getType()->isVoidTy())
123 CallSite::arg_iterator B = CS.arg_begin(), E = CS.arg_end();
125 if (A->get() == V && !CS.doesNotCapture(A - B))
H A DNoAliasAnalysis.cpp46 virtual ModRefBehavior getModRefBehavior(ImmutableCallSite CS) { argument
57 virtual ModRefResult getModRefInfo(ImmutableCallSite CS, argument
H A DAliasAnalysis.cpp79 AliasAnalysis::getModRefInfo(ImmutableCallSite CS, argument
83 ModRefBehavior MRB = getModRefBehavior(CS);
94 MDNode *CSTag = CS.getInstruction()->getMetadata(LLVMContext::MD_tbaa);
95 for (ImmutableCallSite::arg_iterator AI = CS.arg_begin(), AE = CS.arg_end();
121 return ModRefResult(AA->getModRefInfo(CS, Loc) & Mask);
198 AliasAnalysis::getModRefBehavior(ImmutableCallSite CS) { argument
205 if (const Function *F = CS.getCalledFunction())
213 return ModRefBehavior(AA->getModRefBehavior(CS) & Min);
443 ImmutableCallSite CS(
[all...]
/freebsd-10.0-release/contrib/llvm/include/llvm/Transforms/IPO/
H A DInlinerPass.h60 unsigned getInlineThreshold(CallSite CS) const;
67 virtual InlineCost getInlineCost(CallSite CS) = 0;
86 bool shouldInline(CallSite CS);
/freebsd-10.0-release/contrib/llvm/lib/Transforms/IPO/
H A DInlineSimple.cpp51 InlineCost getInlineCost(CallSite CS) { argument
52 return ICA->getInlineCost(CS, getInlineThreshold(CS));
H A DInliner.cpp117 static bool InlineCallIfPossible(CallSite CS, InlineFunctionInfo &IFI, argument
120 Function *Callee = CS.getCalledFunction();
121 Function *Caller = CS.getCaller();
125 if (!InlineFunction(CS, IFI, InsertLifetime))
153 // When processing our SCC, check to see if CS was inlined from some other
232 unsigned Inliner::getInlineThreshold(CallSite CS) const {
238 Function *Caller = CS.getCaller();
248 Function *Callee = CS.getCalledFunction();
262 bool Inliner::shouldInline(CallSite CS) { argument
263 InlineCost IC = getInlineCost(CS);
447 CallSite CS = CallSites[CSi].first; local
[all...]
H A DInlineAlways.cpp50 virtual InlineCost getInlineCost(CallSite CS);
89 InlineCost AlwaysInliner::getInlineCost(CallSite CS) { argument
90 Function *Callee = CS.getCalledFunction();
H A DIPConstantPropagation.cpp99 CallSite CS(cast<Instruction>(U));
100 if (!CS.isCallee(UI))
105 CallSite::arg_iterator AI = CS.arg_begin();
224 CallSite CS(*UI);
225 Instruction* Call = CS.getInstruction();
229 if (!Call || !CS.isCallee(UI))
243 New = CS.getArgument(A->getArgNo());
269 New = CS.getArgument(A->getArgNo());
/freebsd-10.0-release/contrib/llvm/tools/opt/
H A DAnalysisWrappers.cpp45 CallSite CS(cast<Value>(User));
46 if (!CS) continue;
48 for (CallSite::arg_iterator AI = CS.arg_begin(),
49 E = CS.arg_end(); AI != E; ++AI) {
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/Analysis/
H A DPrintfFormatString.cpp230 PrintfConversionSpecifier CS(conversionPosition, k);
231 FS.setConversionSpecifier(CS);
232 if (CS.consumesDataArgument() && !FS.usesPositionalArg())
281 const PrintfConversionSpecifier &CS = getConversionSpecifier(); local
283 if (!CS.consumesDataArgument())
286 if (CS.getKind() == ConversionSpecifier::cArg)
295 if (CS.isIntArg())
319 if (CS.isUIntArg())
344 if (CS.isDoubleArg()) {
350 if (CS
[all...]
H A DCFGStmtMap.cpp53 Optional<CFGStmt> CS = CE.getAs<CFGStmt>(); local
54 if (!CS)
57 CFGBlock *&Entry = SM[CS->getStmt()];
H A DScanfFormatString.cpp33 ScanfConversionSpecifier &CS,
61 CS.setEndScanList(I);
192 ScanfConversionSpecifier CS(conversionPosition, k);
194 if (ParseScanList(H, CS, I, E))
197 FS.setConversionSpecifier(CS);
198 if (CS.consumesDataArgument() && !FS.getSuppressAssignment()
213 const ScanfConversionSpecifier &CS = getConversionSpecifier(); local
215 if (!CS.consumesDataArgument())
218 switch(CS.getKind()) {
378 if (CS
32 ParseScanList(FormatStringHandler &H, ScanfConversionSpecifier &CS, const char *&Beg, const char *E) argument
[all...]
/freebsd-10.0-release/contrib/llvm/lib/Transforms/ObjCARC/
H A DObjCARCAliasAnalysis.cpp111 ObjCARCAliasAnalysis::getModRefBehavior(ImmutableCallSite CS) { argument
113 return AliasAnalysis::getModRefBehavior(CS);
132 ObjCARCAliasAnalysis::getModRefInfo(ImmutableCallSite CS, const Location &Loc) { argument
134 return AliasAnalysis::getModRefInfo(CS, Loc);
136 switch (GetBasicInstructionClass(CS.getInstruction())) {
153 return AliasAnalysis::getModRefInfo(CS, Loc);
H A DObjCARCAliasAnalysis.h63 virtual ModRefBehavior getModRefBehavior(ImmutableCallSite CS);
65 virtual ModRefResult getModRefInfo(ImmutableCallSite CS,
H A DDependencyAnalysis.cpp48 ImmutableCallSite CS = static_cast<const Value *>(Inst); local
49 assert(CS && "Only calls can alter reference counts!");
52 AliasAnalysis::ModRefBehavior MRB = PA.getAA()->getModRefBehavior(CS);
56 for (ImmutableCallSite::arg_iterator I = CS.arg_begin(), E = CS.arg_end();
86 } else if (ImmutableCallSite CS = static_cast<const Value *>(Inst)) {
88 for (ImmutableCallSite::arg_iterator OI = CS.arg_begin(),
89 OE = CS.arg_end(); OI != OE; ++OI) {
/freebsd-10.0-release/sys/dev/spibus/
H A Dspibusvar.h28 SPIBUS_ACCESSOR(cs, CS, uint32_t)
/freebsd-10.0-release/contrib/llvm/lib/Analysis/IPA/
H A DInlineCost.cpp103 bool simplifyCallSite(Function *F, CallSite CS);
134 bool visitCallSite(CallSite CS);
149 bool analyzeCall(CallSite CS);
673 bool CallAnalyzer::simplifyCallSite(Function *F, CallSite CS) { argument
683 ConstantArgs.reserve(CS.arg_size());
684 for (CallSite::arg_iterator I = CS.arg_begin(), E = CS.arg_end();
695 SimplifiedValues[CS.getInstruction()] = C;
702 bool CallAnalyzer::visitCallSite(CallSite CS) { argument
703 if (CS
895 analyzeCall(CallSite CS) argument
1166 getInlineCost(CallSite CS, int Threshold) argument
1170 getInlineCost(CallSite CS, Function *Callee, int Threshold) argument
[all...]
H A DCallGraph.cpp143 CallSite CS(cast<Value>(II));
144 if (CS) {
145 const Function *Callee = CS.getCalledFunction();
148 Node->addCalledFunction(CS, CallsExternalNode);
150 Node->addCalledFunction(CS, getOrInsertFunction(Callee));
264 OS << " CS<" << I->first << "> calls ";
280 void CallGraphNode::removeCallEdgeFor(CallSite CS) { argument
283 if (I->first == CS.getInstruction()) {
323 void CallGraphNode::replaceCallEdge(CallSite CS, argument
327 if (I->first == CS
[all...]
/freebsd-10.0-release/contrib/llvm/include/llvm/Analysis/
H A DCodeMetrics.h33 /// instruction. Note that if isInstructionFree(CS.getInstruction()) would
35 bool callIsSmall(ImmutableCallSite CS);
H A DInlineCost.h126 InlineCost getInlineCost(CallSite CS, int Threshold);
135 InlineCost getInlineCost(CallSite CS, Function *Callee, int Threshold);
H A DLibCallAliasAnalysis.h40 ModRefResult getModRefInfo(ImmutableCallSite CS,
68 ImmutableCallSite CS,
/freebsd-10.0-release/contrib/llvm/include/llvm/Support/
H A DSolaris.h20 #undef CS macro
H A DCallSite.h292 bool operator==(const CallSite &CS) const { return I == CS.I; }
293 bool operator!=(const CallSite &CS) const { return I != CS.I; }
294 bool operator<(const CallSite &CS) const {
295 return getInstruction() < CS.getInstruction();
310 ImmutableCallSite(CallSite CS) : Base(CS.getInstruction()) {} argument

Completed in 225 milliseconds

123456