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

1234567

/freebsd-9.3-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.cpp80 AliasAnalysis::getModRefInfo(ImmutableCallSite CS, argument
84 ModRefBehavior MRB = getModRefBehavior(CS);
95 MDNode *CSTag = CS.getInstruction()->getMetadata(LLVMContext::MD_tbaa);
96 for (ImmutableCallSite::arg_iterator AI = CS.arg_begin(), AE = CS.arg_end();
122 return ModRefResult(AA->getModRefInfo(CS, Loc) & Mask);
199 AliasAnalysis::getModRefBehavior(ImmutableCallSite CS) { argument
206 if (const Function *F = CS.getCalledFunction())
214 return ModRefBehavior(AA->getModRefBehavior(CS) & Min);
426 ImmutableCallSite CS(
[all...]
/freebsd-9.3-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-9.3-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
121 Function *Callee = CS.getCalledFunction();
122 Function *Caller = CS.getCaller();
126 if (!InlineFunction(CS, IFI, InsertLifetime))
154 // When processing our SCC, check to see if CS was inlined from some other
255 unsigned Inliner::getInlineThreshold(CallSite CS) const {
261 Function *Caller = CS.getCaller();
271 Function *Callee = CS.getCalledFunction();
285 bool Inliner::shouldInline(CallSite CS) { argument
286 InlineCost IC = getInlineCost(CS);
470 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-9.3-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-9.3-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-9.3-release/sys/dev/spibus/
H A Dspibusvar.h28 SPIBUS_ACCESSOR(cs, CS, uint32_t)
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/Analysis/
H A DCFGStmtMap.cpp53 Optional<CFGStmt> CS = CE.getAs<CFGStmt>(); local
54 if (!CS)
57 CFGBlock *&Entry = SM[CS->getStmt()];
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())
328 if (CS.isUIntArg())
362 if (CS.isDoubleArg()) {
368 if (CS
[all...]
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()) {
388 if (CS
32 ParseScanList(FormatStringHandler &H, ScanfConversionSpecifier &CS, const char *&Beg, const char *E) argument
[all...]
/freebsd-9.3-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.h125 InlineCost getInlineCost(CallSite CS, int Threshold);
134 InlineCost getInlineCost(CallSite CS, Function *Callee, int Threshold);
H A DLibCallAliasAnalysis.h40 ModRefResult getModRefInfo(ImmutableCallSite CS,
68 ImmutableCallSite CS,
/freebsd-9.3-release/contrib/llvm/include/llvm/Support/
H A DSolaris.h29 #undef CS macro
H A DCallSite.h307 bool operator==(const CallSite &CS) const { return I == CS.I; }
308 bool operator!=(const CallSite &CS) const { return I != CS.I; }
309 bool operator<(const CallSite &CS) const {
310 return getInstruction() < CS.getInstruction();
325 ImmutableCallSite(CallSite CS) : Base(CS.getInstruction()) {} argument
/freebsd-9.3-release/contrib/llvm/lib/Analysis/IPA/
H A DCallGraph.cpp53 CallSite CS(cast<Value>(II));
54 if (CS) {
55 const Function *Callee = CS.getCalledFunction();
58 Node->addCalledFunction(CS, CallsExternalNode);
60 Node->addCalledFunction(CS, getOrInsertFunction(Callee));
190 OS << " CS<" << I->first << "> calls ";
206 void CallGraphNode::removeCallEdgeFor(CallSite CS) { argument
209 if (I->first == CS.getInstruction()) {
249 void CallGraphNode::replaceCallEdge(CallSite CS, argument
253 if (I->first == CS
[all...]
H A DInlineCost.cpp105 bool simplifyCallSite(Function *F, CallSite CS);
136 bool visitCallSite(CallSite CS);
158 bool analyzeCall(CallSite CS);
686 bool CallAnalyzer::simplifyCallSite(Function *F, CallSite CS) { argument
696 ConstantArgs.reserve(CS.arg_size());
697 for (CallSite::arg_iterator I = CS.arg_begin(), E = CS.arg_end();
708 SimplifiedValues[CS.getInstruction()] = C;
715 bool CallAnalyzer::visitCallSite(CallSite CS) { argument
716 if (CS
962 analyzeCall(CallSite CS) argument
1209 getInlineCost(CallSite CS, int Threshold) argument
1229 getInlineCost(CallSite CS, Function *Callee, int Threshold) argument
[all...]

Completed in 127 milliseconds

1234567