Searched refs:CI (Results 101 - 125 of 214) sorted by relevance

123456789

/freebsd-10.3-release/contrib/llvm/lib/Analysis/IPA/
H A DGlobalsModRef.cpp268 } else if (CallInst *CI = dyn_cast<CallInst>(U)) {
271 for (unsigned i = 0, e = CI->getNumArgOperands(); i != e; ++i)
272 if (CI->getArgOperand(i) == V) return true;
412 for (CallGraphNode::iterator CI = SCC[i]->begin(), E = SCC[i]->end();
413 CI != E && !KnowNothing; ++CI)
414 if (Function *Callee = CI->second->getFunction()) {
/freebsd-10.3-release/contrib/llvm/lib/Transforms/Utils/
H A DPromoteMemoryToRegister.cpp589 for (DomTreeNode::iterator CI = Node->begin(), CE = Node->end();
590 CI != CE; ++CI) {
591 DomLevels[*CI] = ChildLevel;
592 Worklist.push_back(*CI);
916 for (DomTreeNode::iterator CI = Node->begin(), CE = Node->end(); CI != CE;
917 ++CI) {
918 if (!Visited.count(*CI))
919 Worklist.push_back(*CI);
[all...]
H A DLocal.cpp113 ConstantInt *CI = dyn_cast<ConstantInt>(SI->getCondition()); local
121 if (i.getCaseValue() == CI) {
136 ConstantInt* CI = dyn_cast<ConstantInt>(MD->getOperand(MD_i)); local
137 assert(CI);
138 Weights.push_back(CI->getValue().getZExtValue());
163 if (CI && !TheOnlyDest) {
304 if (CallInst *CI = isFreeCall(I, TLI))
305 if (Constant *C = dyn_cast<Constant>(CI->getArgOperand(0)))
1180 if (CallInst *CI = dyn_cast<CallInst>(BBI)) {
1181 if (CI
[all...]
H A DSimplifyCFG.cpp311 ConstantInt *CI = dyn_cast<ConstantInt>(V); local
312 if (CI || !TD || !isa<Constant>(V) || !V->getType()->isPointerTy())
313 return CI;
326 if (ConstantInt *CI = dyn_cast<ConstantInt>(CE->getOperand(0))) {
328 if (CI->getType() == PtrTy)
329 return CI;
332 (ConstantExpr::getIntegerCast(CI, PtrTy, /*isSigned=*/false));
629 ConstantInt* CI = dyn_cast<ConstantInt>(MD->getOperand(MD_i)); local
630 assert(CI);
631 Weights.push_back(CI
735 ConstantInt* CI = dyn_cast<ConstantInt>(MD->getOperand(i)); local
1569 const CallInst *CI = dyn_cast<CallInst>(I); local
2141 CmpInst *CI = cast<CmpInst>(NewCond); local
3093 CallInst *CI = Builder.CreateCall(II->getCalledValue(), local
3693 SwitchInst::CaseIt CI = SI->case_begin(); local
[all...]
/freebsd-10.3-release/contrib/llvm/lib/Target/X86/
H A DX86FastISel.cpp303 if (const ConstantInt *CI = dyn_cast<ConstantInt>(Val)) {
314 if (isInt<32>(CI->getSExtValue()))
322 .addImm(Signed ? (uint64_t) CI->getSExtValue() :
323 CI->getZExtValue());
525 if (const ConstantInt *CI = dyn_cast<ConstantInt>(U->getOperand(1))) {
526 uint64_t Disp = (int32_t)AM.Disp + (uint64_t)CI->getSExtValue();
559 if (const ConstantInt *CI = dyn_cast<ConstantInt>(Op)) {
561 Disp += CI->getSExtValue() * S;
566 ConstantInt *CI = local
568 Disp += CI
991 const CmpInst *CI = cast<CmpInst>(I); local
1844 const CallInst *CI = cast<CallInst>(I); local
1880 const CallInst *CI = cast<CallInst>(I); local
[all...]
/freebsd-10.3-release/contrib/llvm/lib/CodeGen/SelectionDAG/
H A DFunctionLoweringInfo.cpp340 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) {
341 APInt Val = CI->getValue().zextOrTrunc(BitWidth);
375 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) {
376 APInt Val = CI->getValue().zextOrTrunc(BitWidth);
462 if (const ConstantInt *CI = dyn_cast<ConstantInt>(I.getArgOperand(i))) {
463 unsigned FilterLength = CI->getZExtValue();
H A DFastISel.cpp186 if (const ConstantInt *CI = dyn_cast<ConstantInt>(V)) {
187 if (CI->getValue().getActiveBits() <= 64)
188 Reg = FastEmit_i(VT, VT, ISD::Constant, CI->getZExtValue());
380 if (ConstantInt *CI = dyn_cast<ConstantInt>(I->getOperand(0)))
388 Op1IsKill, CI->getZExtValue(),
405 if (ConstantInt *CI = dyn_cast<ConstantInt>(I->getOperand(1))) {
406 uint64_t Imm = CI->getZExtValue();
502 if (const ConstantInt *CI = dyn_cast<ConstantInt>(Idx)) {
503 if (CI->isZero()) continue;
506 TD.getTypeAllocSize(Ty)*cast<ConstantInt>(CI)
699 ConstantInt *CI = cast<ConstantInt>(Call->getArgOperand(1)); local
[all...]
/freebsd-10.3-release/contrib/llvm/lib/Analysis/
H A DLoopInfo.cpp164 if (ConstantInt *CI =
166 if (CI->isNullValue())
171 if (ConstantInt *CI = dyn_cast<ConstantInt>(Inc->getOperand(1)))
172 if (CI->equalsInt(1))
227 if (const CallInst *CI = dyn_cast<CallInst>(BI)) {
228 if (CI->hasFnAttr(Attribute::NoDuplicate))
H A DInstructionSimplify.cpp1315 if (ConstantInt *CI = dyn_cast<ConstantInt>(Op1))
1316 if (CI->getValue().getLimitedValue() >=
1972 if (ConstantInt *CI = dyn_cast<ConstantInt>(RHS)) {
1974 ConstantRange RHS_CR = ICmpInst::makeConstantRange(Pred, CI->getValue());
1976 return ConstantInt::getFalse(CI->getContext());
1978 return ConstantInt::getTrue(CI->getContext());
1982 uint32_t Width = CI->getBitWidth();
2078 else if (ConstantInt *CI = dyn_cast<ConstantInt>(RHS)) {
2081 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy);
2086 if (RExt == CI
[all...]
H A DScalarEvolutionExpander.cpp53 if (CastInst *CI = dyn_cast<CastInst>(U))
54 if (CI->getOpcode() == Op) {
58 if (BasicBlock::iterator(CI) != IP || BIP == IP) {
63 Ret->takeName(CI);
64 CI->replaceAllUsesWith(Ret);
65 CI->setOperand(0, UndefValue::get(V->getType()));
68 Ret = CI;
102 if (CastInst *CI = dyn_cast<CastInst>(V)) {
103 if (CI->getOperand(0)->getType() == Ty)
104 return CI
230 ConstantInt *CI = local
[all...]
/freebsd-10.3-release/contrib/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp551 if (CastInst *CI = dyn_cast<CastInst>(&I)) {
552 return IC->Builder->CreateCast(CI->getOpcode(), SO, I.getType());
572 if (ICmpInst *CI = dyn_cast<ICmpInst>(&I))
573 return IC->Builder->CreateICmp(CI->getPredicate(), Op0, Op1,
575 if (FCmpInst *CI = dyn_cast<FCmpInst>(&I))
576 return IC->Builder->CreateICmp(CI->getPredicate(), Op0, Op1,
712 } else if (CmpInst *CI = dyn_cast<CmpInst>(&I)) {
717 InV = ConstantExpr::getCompare(CI->getPredicate(), InC, C);
718 else if (isa<ICmpInst>(CI))
719 InV = Builder->CreateICmp(CI
738 CastInst *CI = cast<CastInst>(&I); local
1499 ConstantInt *CI = cast<ConstantInt>(II->getArgOperand(1)); local
[all...]
H A DInstCombineVectorOps.cpp51 if (CmpInst *CI = dyn_cast<CmpInst>(I))
52 if (CI->hasOneUse() &&
53 (CheapToScalarize(CI->getOperand(0), isConstant) ||
54 CheapToScalarize(CI->getOperand(1), isConstant)))
278 } else if (CastInst *CI = dyn_cast<CastInst>(I)) {
281 if (CI->hasOneUse() && (CI->getOpcode() != Instruction::BitCast)) {
282 Value *EE = Builder->CreateExtractElement(CI->getOperand(0),
285 return CastInst::Create(CI->getOpcode(), EE, EI.getType());
587 ConstantInt *CI local
[all...]
H A DInstCombineLoadStoreAlloca.cpp285 User *CI = cast<User>(LI.getOperand(0)); local
286 Value *CastOp = CI->getOperand(0);
288 PointerType *DestTy = cast<PointerType>(CI->getType());
330 IC.Builder->CreateLoad(CastOp, LI.isVolatile(), CI->getName());
454 User *CI = cast<User>(SI.getOperand(1)); local
455 Value *CastOp = CI->getOperand(0);
457 Type *DestPTy = cast<PointerType>(CI->getType())->getElementType();
504 cast<PointerType>(CI->getType())->getAddressSpace() ||
/freebsd-10.3-release/contrib/llvm/tools/clang/include/clang/Frontend/
H A DASTUnit.h398 /// \param CI to this ASTUnit.
399 void transferASTDataFromCompilerInstance(CompilerInstance &CI);
656 static ASTUnit *create(CompilerInvocation *CI,
695 /// \param CI - The compiler invocation to use; it must have exactly one input
717 static ASTUnit *LoadFromCompilerInvocationAction(CompilerInvocation *CI,
734 /// \param CI - The compiler invocation to use; it must have exactly one input
742 static ASTUnit *LoadFromCompilerInvocation(CompilerInvocation *CI,
/freebsd-10.3-release/contrib/llvm/tools/clang/lib/ARCMigrate/
H A DObjCMT.cpp158 ASTConsumer *ObjCMigrateAction::CreateASTConsumer(CompilerInstance &CI, argument
164 WrappedConsumer = WrapperFrontendAction::CreateASTConsumer(CI, InFile);
177 bool ObjCMigrateAction::BeginInvocation(CompilerInstance &CI) { argument
178 Remapper.initFromDisk(MigrateDir, CI.getDiagnostics(),
180 CompInst = &CI;
181 CI.getDiagnostics().setIgnoreAllWarnings(true);
1725 bool MigrateSourceAction::BeginInvocation(CompilerInstance &CI) { argument
1726 CI.getDiagnostics().setIgnoreAllWarnings(true);
1749 ASTConsumer *MigrateSourceAction::CreateASTConsumer(CompilerInstance &CI, argument
1752 PPRec = new PPConditionalDirectiveRecord(CI
[all...]
H A DARCMT.cpp485 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI, argument
487 CI.getPreprocessor().addPPCallbacks(
538 MigrationProcess::MigrationProcess(const CompilerInvocation &CI, argument
541 : OrigCI(CI), DiagClient(diagClient), HadARCErrors(false) {
545 new DiagnosticsEngine(DiagID, &CI.getDiagnosticOpts(),
/freebsd-10.3-release/contrib/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinterInlineAsm.cpp62 if (const ConstantInt *CI =
64 LocCookie = CI->getZExtValue();
454 if (const ConstantInt *CI = dyn_cast<ConstantInt>(LocMD->getOperand(0))) {
455 LocCookie = CI->getZExtValue();
/freebsd-10.3-release/contrib/llvm/include/llvm/Support/
H A DConstantRange.h164 ConstantRange subtract(const APInt &CI) const;
/freebsd-10.3-release/contrib/llvm/lib/Transforms/Instrumentation/
H A DDataFlowSanitizer.cpp242 void visitCastInst(CastInst &CI);
243 void visitCmpInst(CmpInst &CI);
437 CallInst *CI = CallInst::Create(F, Args, "", BB); local
441 ReturnInst::Create(*Ctx, CI, BB);
458 CallInst *CI = local
464 RI = ReturnInst::Create(*Ctx, CI, BB);
470 DFSanVisitor(DFSF).visitCallInst(*CI);
1061 void DFSanVisitor::visitCastInst(CastInst &CI) { visitOperandShadowInst(CI); } argument
1063 void DFSanVisitor::visitCmpInst(CmpInst &CI) { visitOperandShadowIns argument
[all...]
/freebsd-10.3-release/contrib/llvm/lib/Transforms/ObjCARC/
H A DObjCARCOpts.cpp1337 CallInst *CI = cast<CallInst>(Inst); local
1338 if (IsNullOrUndef(CI->getArgOperand(0))) {
1340 Type *Ty = CI->getArgOperand(0)->getType();
1343 CI); local
1344 llvm::Value *NewValue = UndefValue::get(CI->getType());
1346 "\nOld = " << *CI << "\nNew = " << *NewValue << "\n");
1347 CI->replaceAllUsesWith(NewValue);
1348 CI->eraseFromParent();
1355 CallInst *CI = cast<CallInst>(Inst); local
1356 if (IsNullOrUndef(CI
1362 CI); local
2717 CallInst *CI = CallInst::Create(Decl, EarlierCall, "", Call); local
2746 CallInst *CI = CallInst::Create(Decl, EarlierCall, "", Call); local
[all...]
/freebsd-10.3-release/contrib/llvm/lib/Transforms/Scalar/
H A DSCCP.cpp525 ConstantInt *CI = BCValue.getConstantInt(); local
526 if (CI == 0) {
535 Succs[CI->isZero()] = true;
551 ConstantInt *CI = SCValue.getConstantInt(); local
553 if (CI == 0) { // Overdefined or undefined condition?
560 Succs[SI->findCaseValue(CI).getSuccessorIndex()] = true;
597 ConstantInt *CI = BCValue.getConstantInt(); local
598 if (CI == 0)
602 return BI->getSuccessor(CI->isZero()) == To;
614 ConstantInt *CI local
[all...]
/freebsd-10.3-release/contrib/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp1888 getIntrinsicIDForCall(CallInst *CI, const TargetLibraryInfo *TLI) { argument
1890 if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(CI)) {
1923 Function *F = CI->getCalledFunction();
1938 return checkUnaryFloatSignature(*CI, Intrinsic::sin);
1942 return checkUnaryFloatSignature(*CI, Intrinsic::cos);
1946 return checkUnaryFloatSignature(*CI, Intrinsic::exp);
1950 return checkUnaryFloatSignature(*CI, Intrinsic::exp2);
1954 return checkUnaryFloatSignature(*CI, Intrinsic::log);
1958 return checkUnaryFloatSignature(*CI, Intrinsic::log10);
1962 return checkUnaryFloatSignature(*CI, Intrinsi
2697 CastInst *CI = dyn_cast<CastInst>(it); local
2729 CallInst *CI = cast<CallInst>(it); local
3089 CallInst *CI = dyn_cast<CallInst>(it); local
[all...]
/freebsd-10.3-release/contrib/llvm/lib/CodeGen/
H A DSjLjEHPrepare.cpp464 if (CallInst *CI = dyn_cast<CallInst>(I)) {
465 if (!CI->doesNotThrow())
466 insertCallSiteStore(CI, -1);
482 if (CallInst *CI = dyn_cast<CallInst>(I)) {
483 if (CI->getCalledFunction() != StackRestoreFn)
/freebsd-10.3-release/contrib/llvm/lib/IR/
H A DValue.cpp475 ConstantInt *CI = dyn_cast<ConstantInt>(Index); local
476 if (!CI)
479 if (CI->isZero())
485 if (CI->getValue().getActiveBits() > 64)
487 if (CI->getZExtValue() >= ATy->getNumElements())
/freebsd-10.3-release/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DRegionStore.cpp219 for (ClusterBindings::iterator CI = Cluster.begin(), CE = Cluster.end();
220 CI != CE; ++CI) {
221 OS << ' ' << CI.getKey() << " : " << CI.getData() << nl;
594 for (ClusterBindings::iterator CI = Cluster.begin(), CE = Cluster.end();
595 CI != CE; ++CI) {
596 const BindingKey &K = CI.getKey();
601 if (!f.HandleBinding(*this, store, R, CI
[all...]

Completed in 343 milliseconds

123456789