Searched refs:CI (Results 51 - 75 of 260) sorted by relevance

1234567891011

/external/llvm/lib/IR/
H A DInstruction.cpp284 if (const CmpInst *CI = dyn_cast<CmpInst>(I1))
285 return CI->getPredicate() == cast<CmpInst>(I2)->getPredicate();
286 if (const CallInst *CI = dyn_cast<CallInst>(I1))
287 return CI->isTailCall() == cast<CallInst>(I2)->isTailCall() &&
288 CI->getCallingConv() == cast<CallInst>(I2)->getCallingConv() &&
289 CI->getAttributes() == cast<CallInst>(I2)->getAttributes();
290 if (const InvokeInst *CI = dyn_cast<InvokeInst>(I1))
291 return CI->getCallingConv() == cast<InvokeInst>(I2)->getCallingConv() &&
292 CI->getAttributes() ==
442 if (const CallInst *CI
[all...]
/external/llvm/lib/Transforms/IPO/
H A DPruneEH.cpp116 if (CallInst *CI = dyn_cast<CallInst>(I)) {
117 if (CI->doesNotThrow()) {
119 } else if (Function *Callee = CI->getCalledFunction()) {
211 if (CallInst *CI = dyn_cast<CallInst>(I++))
212 if (CI->doesNotReturn() && !isa<UnreachableInst>(I)) {
243 if (CallInst *CI = dyn_cast<CallInst>(I)) {
245 CGN->removeCallEdgeFor(CI);
H A DGlobalOpt.cpp624 } else if (const CallInst *CI = dyn_cast<CallInst>(U)) {
625 if (CI->getCalledValue() != V) {
634 } else if (const BitCastInst *CI = dyn_cast<BitCastInst>(U)) {
635 if (!AllUsesOfValueWillTrapIfNull(CI, PHIs)) return false;
704 } else if (CastInst *CI = dyn_cast<CastInst>(I)) {
705 Changed |= OptimizeAwayTrappingUsesOfValue(CI,
706 ConstantExpr::getCast(CI->getOpcode(),
707 NewV, CI->getType()));
708 if (CI->use_empty()) {
710 CI
824 OptimizeGlobalAddressOfMalloc(GlobalVariable *GV, CallInst *CI, Type *AllocTy, ConstantInt *NElements, const DataLayout *DL, TargetLibraryInfo *TLI) argument
830 DEBUG(errs() << "PROMOTING GLOBAL: " << *GV << " CALL = " << *CI << '\\n'); local
1274 PerformHeapAllocSRoA(GlobalVariable *GV, CallInst *CI, Value *NElems, const DataLayout *DL, const TargetLibraryInfo *TLI) argument
1277 DEBUG(dbgs() << "SROA HEAP ALLOC: " << *GV << " MALLOC = " << *CI << '\\n'); local
1463 TryToOptimizeStoreOfMallocToGlobal(GlobalVariable *GV, CallInst *CI, Type *AllocTy, AtomicOrdering Ordering, Module::global_iterator &GVI, const DataLayout *DL, TargetLibraryInfo *TLI) argument
2136 ConstantInt *CI = cast<ConstantInt>(Addr->getOperand(OpNo)); local
3002 CallInst *CI = dyn_cast<CallInst>(*I++); local
[all...]
/external/clang/lib/Frontend/
H A DChainedIncludesSource.cpp76 createASTReader(CompilerInstance &CI, StringRef pchFile, argument
80 Preprocessor &PP = CI.getPreprocessor();
82 Reader.reset(new ASTReader(PP, CI.getASTContext(), /*isysroot=*/"",
113 CompilerInstance &CI, IntrusiveRefCntPtr<ExternalSemaSource> &Reader) {
115 std::vector<std::string> &includes = CI.getPreprocessorOpts().ChainedIncludes;
119 InputKind IK = CI.getFrontendOpts().Inputs[0].getKind();
127 CInvok.reset(new CompilerInvocation(CI.getInvocation()));
145 new DiagnosticsEngine(DiagID, &CI.getDiagnosticOpts(), DiagClient));
206 Reader = createASTReader(CI, pchName, serialBufs, serialBufNames);
112 createChainedIncludesSource( CompilerInstance &CI, IntrusiveRefCntPtr<ExternalSemaSource> &Reader) argument
/external/clang/test/Sema/
H A Dreturn.c253 typedef const int CI; typedef
254 CI ignored_quals_typedef();
256 const CI ignored_quals_typedef_2(); // expected-warning{{'const' type qualifier}}
/external/libcxx/test/containers/sequences/deque/deque.capacity/
H A Dresize_size_value.pass.cpp45 typedef typename C::const_iterator CI; typedef
50 CI i = c1.begin();
61 typedef typename C::const_iterator CI; typedef
/external/libcxx/test/containers/sequences/deque/deque.modifiers/
H A Demplace.pass.cpp49 typedef typename C::const_iterator CI; typedef
51 CI i = c1.emplace(c1.begin() + P, Emplaceable(1, 2.5));
63 typedef typename C::const_iterator CI; typedef
H A Dinsert_rvalue.pass.cpp49 typedef typename C::const_iterator CI; typedef
51 CI i = c1.insert(c1.begin() + P, MoveOnly(x));
69 typedef typename C::const_iterator CI; typedef
H A Dinsert_size_value.pass.cpp46 typedef typename C::const_iterator CI; typedef
48 CI i = c1.insert(c1.begin() + P, size, x);
66 typedef typename C::const_iterator CI; typedef
113 typedef typename C::const_iterator CI; typedef
119 CI it = c.cbegin() + i;
120 CI jt = c.cbegin() + j;
/external/libcxx/test/containers/sequences/deque/deque.special/
H A Dcopy.pass.cpp50 typedef typename C::const_iterator CI; typedef
52 typedef random_access_iterator<CI> RACI;
53 typedef input_iterator<CI> ICI;
/external/llvm/lib/Analysis/
H A DCostModel.cpp247 ConstantInt *CI = dyn_cast<ConstantInt>(ReduxRoot->getOperand(1));
249 if (CI)
250 Idx = CI->getZExtValue();
310 ConstantInt *CI = dyn_cast<ConstantInt>(ReduxRoot->getOperand(1));
312 if (CI)
313 Idx = CI->getZExtValue();
461 ConstantInt *CI = dyn_cast<ConstantInt>(I->getOperand(1)); local
463 if (CI)
464 Idx = CI->getZExtValue();
481 ConstantInt *CI local
[all...]
H A DMemoryBuiltins.cpp209 static Value *computeArraySize(const CallInst *CI, const DataLayout *DL, argument
212 if (!CI)
216 Type *T = getMallocAllocatedType(CI, TLI);
226 Value *MallocArg = CI->getArgOperand(0);
241 const CallInst *CI = extractMallocCall(I, TLI); local
242 Value *ArraySize = computeArraySize(CI, DL, TLI);
246 return CI;
248 // CI is a non-array malloc or we can't figure out that it is an array malloc.
257 PointerType *llvm::getMallocType(const CallInst *CI, argument
259 assert(isMallocLikeFn(CI, TL
289 getMallocAllocatedType(const CallInst *CI, const TargetLibraryInfo *TLI) argument
300 getMallocArraySize(CallInst *CI, const DataLayout *DL, const TargetLibraryInfo *TLI, bool LookThroughSExt) argument
318 const CallInst *CI = dyn_cast<CallInst>(I); local
[all...]
H A DBranchProbabilityInfo.cpp243 if (CallInst *CI = dyn_cast<CallInst>(I))
244 if (CI->hasFnAttr(Attribute::Cold)) {
281 ICmpInst *CI = dyn_cast<ICmpInst>(Cond); local
282 if (!CI || !CI->isEquality())
285 Value *LHS = CI->getOperand(0);
290 assert(CI->getOperand(1)->getType()->isPointerTy());
297 bool isProb = CI->getPredicate() == ICmpInst::ICMP_NE;
371 ICmpInst *CI = dyn_cast<ICmpInst>(Cond); local
372 if (!CI)
[all...]
/external/llvm/lib/CodeGen/
H A DMachineLICM.cpp146 CI = CSEMap.begin(), CE = CSEMap.end(); CI != CE; ++CI)
147 CI->second.clear();
276 DenseMap<unsigned, std::vector<const MachineInstr*> >::iterator &CI);
1071 for (DenseMap<unsigned, int>::iterator CI = Cost.begin(), CE = Cost.end();
1072 CI != CE; ++CI) {
1073 if (CI->second <= 0)
1076 unsigned RCId = CI
1116 DenseMap<unsigned, int>::iterator CI = Cost.find(RCId); local
1122 DenseMap<unsigned, int>::iterator CI = Cost.find(RCId); local
1303 CI = CSEMap.find(Opcode); local
1325 EliminateCSE(MachineInstr *MI, DenseMap<unsigned, std::vector<const MachineInstr*> >::iterator &CI) argument
1387 CI = CSEMap.find(Opcode); local
1430 CI = CSEMap.find(Opcode); local
[all...]
H A DDwarfEHPrepare.cpp142 CallInst *CI = CallInst::Create(RewindFunction, ExnObj, "", UnwindBB); local
143 CI->setCallingConv(TLI->getLibcallCallingConv(RTLIB::UNWIND_RESUME));
169 CallInst *CI = CallInst::Create(RewindFunction, PN, "", UnwindBB); local
170 CI->setCallingConv(TLI->getLibcallCallingConv(RTLIB::UNWIND_RESUME));
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp83 ConstantInt *CI = nullptr;
84 if ((isLeftShift && match(I, m_LShr(m_Value(), m_ConstantInt(CI)))) ||
85 (!isLeftShift && match(I, m_Shl(m_Value(), m_ConstantInt(CI))))) {
86 if (CI->getZExtValue() == NumBits) {
96 CI->getLimitedValue(BitWidth) < BitWidth) {
119 CI = dyn_cast<ConstantInt>(I->getOperand(1));
120 if (!CI) return false;
126 if (CI->getValue() == NumBits) return true;
132 if (CI->getZExtValue() > NumBits) {
133 unsigned LowBits = TypeWidth - CI
218 ConstantInt *CI = cast<ConstantInt>(BO->getOperand(1)); local
259 ConstantInt *CI = cast<ConstantInt>(BO->getOperand(1)); local
[all...]
H A DInstCombineCompares.cpp162 static bool isHighOnes(const ConstantInt *CI) { argument
163 return (~CI->getValue() + 1).isPowerOf2();
519 if (ConstantInt *CI = dyn_cast<ConstantInt>(GEP->getOperand(i))) {
521 if (CI->isZero()) continue;
525 Offset += DL.getStructLayout(STy)->getElementOffset(CI->getZExtValue());
528 Offset += Size*CI->getSExtValue();
547 ConstantInt *CI = dyn_cast<ConstantInt>(GEP->getOperand(i)); local
548 if (!CI) return nullptr;
551 if (CI->isZero()) continue;
555 Offset += DL.getStructLayout(STy)->getElementOffset(CI
740 FoldICmpAddOpCst(Instruction &ICI, Value *X, ConstantInt *CI, ICmpInst::Predicate Pred) argument
1849 ConstantInt *CI = dyn_cast<ConstantInt>(ICI.getOperand(1)); local
2106 ConstantInt *CI; local
2201 ConstantInt *CI = cast<ConstantInt>(BO->getOperand(1)); local
2559 const APInt *CI; local
2604 const APInt *CI; local
3608 CallInst *CI = cast<CallInst>(LHSI); local
[all...]
/external/llvm/lib/Transforms/Utils/
H A DInlineFunction.cpp35 bool llvm::InlineFunction(CallInst *CI, InlineFunctionInfo &IFI, argument
37 return InlineFunction(CallSite(CI), IFI, InsertLifetime);
172 CallInst *CI = dyn_cast<CallInst>(I); local
176 if (!CI || CI->doesNotThrow() || isa<InlineAsm>(CI->getCalledValue()))
181 BasicBlock *Split = BB->splitBasicBlock(CI, CI->getName()+".noexc");
187 ImmutableCallSite CS(CI);
189 InvokeInst *II = InvokeInst::Create(CI
703 CallInst *CI = dyn_cast<CallInst>(&I); local
[all...]
/external/clang/examples/clang-interpreter/
H A Dmain.cpp112 std::unique_ptr<CompilerInvocation> CI(new CompilerInvocation);
113 CompilerInvocation::CreateFromArgs(*CI,
120 if (CI->getHeaderSearchOpts().Verbose) {
130 Clang.setInvocation(CI.release());
/external/llvm/include/llvm/IR/
H A DAutoUpgrade.h37 void UpgradeIntrinsicCall(CallInst *CI, Function *NewFn);
H A DCallSite.h51 CallSiteBase(CallTy *CI) : I(CI, true) { assert(CI); } argument
339 CallSite(CallInst *CI) : Base(CI) {} argument
358 ImmutableCallSite(const CallInst *CI) : Base(CI) {} argument
/external/lldb/source/Expression/
H A DClangExpressionParser.cpp113 static FrontendAction *CreateFrontendBaseAction(CompilerInstance &CI) { argument
116 switch (CI.getFrontendOpts().ProgramAction) {
143 if (it->getName() == CI.getFrontendOpts().ActionName) {
145 if (!P->ParseArgs(CI, CI.getFrontendOpts().PluginArgs))
151 CI.getDiagnostics().Report(diag::err_fe_invalid_plugin_name)
152 << CI.getFrontendOpts().ActionName;
167 static FrontendAction *CreateFrontendAction(CompilerInstance &CI) { argument
169 FrontendAction *Act = CreateFrontendBaseAction(CI);
175 if (!CI
[all...]
/external/clang/include/clang/ARCMigrate/
H A DARCMT.h40 bool checkForManualIssues(CompilerInvocation &CI,
102 MigrationProcess(const CompilerInvocation &CI, DiagnosticConsumer *diagClient,
/external/llvm/lib/Transforms/Scalar/
H A DCorrelatedValuePropagation.cpp79 ConstantInt *CI = dyn_cast<ConstantInt>(C);
80 if (!CI) return false;
84 if (!CI->isOne()) std::swap(ReplaceWith, Other);
222 for (SwitchInst::CaseIt CI = SI->case_end(), CE = SI->case_begin(); CI-- != CE;
224 ConstantInt *Case = CI.getCaseValue();
256 CI.getCaseSuccessor()->removePredecessor(BB);
257 SI->removeCase(CI); // Does not invalidate the iterator.
H A DEarlyCSE.cpp64 if (CallInst *CI = dyn_cast<CallInst>(Inst))
65 return CI->doesNotAccessMemory() && !CI->getType()->isVoidTy();
108 if (CmpInst *CI = dyn_cast<CmpInst>(Inst)) {
109 Value *LHS = CI->getOperand(0);
110 Value *RHS = CI->getOperand(1);
111 CmpInst::Predicate Pred = CI->getPredicate();
114 Pred = CI->getSwappedPredicate();
119 if (CastInst *CI = dyn_cast<CastInst>(Inst))
120 return hash_combine(CI
[all...]

Completed in 696 milliseconds

1234567891011