Searched defs:CI (Results 76 - 100 of 152) sorted by relevance

1234567

/external/llvm/lib/Analysis/
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);
240 PointerType *llvm::getMallocType(const CallInst *CI, argument
242 assert(isMallocLikeFn(CI, TLI) && "getMallocType and not malloc call");
248 for (Value::const_user_iterator UI = CI->user_begin(), E = CI->user_end();
261 return cast<PointerType>(CI->getType());
272 Type *llvm::getMallocAllocatedType(const CallInst *CI, argument
283 getMallocArraySize(CallInst *CI, const DataLayout &DL, const TargetLibraryInfo *TLI, bool LookThroughSExt) argument
301 const CallInst *CI = dyn_cast<CallInst>(I); local
[all...]
H A DLazyValueInfo.cpp141 if (ConstantInt *CI = dyn_cast<ConstantInt>(V))
142 return markConstantRange(ConstantRange(CI->getValue()));
157 if (ConstantInt *CI = dyn_cast<ConstantInt>(V))
158 return markConstantRange(ConstantRange(CI->getValue()+1, CI->getValue()));
855 ConstantInt *CI = dyn_cast<ConstantInt>(ICI->getOperand(1)); local
856 if (CI && (ICI->getOperand(0) == Val || NegOffset)) {
858 ConstantRange CmpRange(CI->getValue());
1081 ValueCacheEntryTy::iterator CI = Entry.find(ToUpdate); local
1083 assert(CI !
1195 ConstantInt *CI = dyn_cast<ConstantInt>(C); local
[all...]
/external/llvm/lib/CodeGen/SelectionDAG/
H A DFunctionLoweringInfo.cpp72 if (const auto *CI = dyn_cast<CmpInst>(U)) {
73 NumOfSigned += CI->isSigned();
74 NumOfUnsigned += CI->isUnsigned();
189 if (const auto *CI = dyn_cast<CallInst>(I)) {
190 if (CI->isMustTailCall() && Fn->isVarArg())
427 const auto *CI = dyn_cast<CallInst>(&I); local
428 if (!CI || CI->doesNotThrow())
430 processCallSite(None, CI);
561 if (ConstantInt *CI
[all...]
/external/llvm/lib/Transforms/IPO/
H A DDeadArgumentElimination.cpp205 CallInst *CI = dyn_cast<CallInst>(I); local
206 if (!CI)
208 if (CI->isMustTailCall())
210 if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(CI)) {
H A DLowerBitSets.cpp219 lowerBitSetCall(CallInst *CI, BitSetInfo &BSI, ByteArrayInfo *&BAI,
420 CallInst *CI, BitSetInfo &BSI, ByteArrayInfo *&BAI,
423 Value *Ptr = CI->getArgOperand(0);
433 BasicBlock *InitialBB = CI->getParent();
435 IRBuilder<> B(CI);
471 TerminatorInst *Term = SplitBlockAndInsertIfThen(OffsetInRange, CI, false);
481 B.SetInsertPoint(CI);
536 for (CallInst *CI : BitSetTestCallSites[BS]) {
538 Value *Lowered = lowerBitSetCall(CI, BSI, BAI, CombinedGlobal, GlobalLayout);
539 CI
419 lowerBitSetCall( CallInst *CI, BitSetInfo &BSI, ByteArrayInfo *&BAI, GlobalVariable *CombinedGlobal, const DenseMap<GlobalVariable *, uint64_t> &GlobalLayout) argument
582 auto CI = cast<CallInst>(U.getUser()); local
[all...]
H A DMergeFunctions.cpp758 if (const CmpInst *CI = dyn_cast<CmpInst>(L))
759 return cmpNumbers(CI->getPredicate(), cast<CmpInst>(R)->getPredicate());
760 if (const CallInst *CI = dyn_cast<CallInst>(L)) {
761 if (int Res = cmpNumbers(CI->getCallingConv(),
765 cmpAttrs(CI->getAttributes(), cast<CallInst>(R)->getAttributes()))
768 (uint64_t)CI->getMetadata(LLVMContext::MD_range),
771 if (const InvokeInst *CI = dyn_cast<InvokeInst>(L)) {
772 if (int Res = cmpNumbers(CI->getCallingConv(),
776 cmpAttrs(CI->getAttributes(), cast<InvokeInst>(R)->getAttributes()))
779 (uint64_t)CI
1339 CallInst *CI = Builder.CreateCall(F, Args); local
[all...]
/external/llvm/lib/Transforms/Scalar/
H A DTailRecursionElimination.cpp106 bool EliminateRecursiveTailCall(CallInst *CI, ReturnInst *Ret,
120 bool CanMoveAboveCall(Instruction *I, CallInst *CI);
121 Value *CanTransformAccumulatorRecursion(Instruction *I, CallInst *CI);
298 CallInst *CI = dyn_cast<CallInst>(&I); local
299 if (!CI || CI->isTailCall())
302 if (CI->doesNotAccessMemory()) {
311 for (auto &Arg : CI->arg_operands()) {
322 F.getContext(), "tailcallelim", F, CI->getDebugLoc(),
324 CI
439 CanMoveAboveCall(Instruction *I, CallInst *CI) argument
475 isDynamicConstant(Value *V, CallInst *CI, ReturnInst *RI) argument
509 getCommonReturnValue(ReturnInst *IgnoreRI, CallInst *CI) argument
535 CanTransformAccumulatorRecursion(Instruction *I, CallInst *CI) argument
614 EliminateRecursiveTailCall(CallInst *CI, ReturnInst *Ret, BasicBlock *&OldEntry, bool &TailCallsAreMarkedTail, SmallVectorImpl<PHINode *> &ArgumentPHIs, bool CannotTailCallElimCallsMarkedTail) argument
844 CallInst *CI = FindTRECandidate(Ret, CannotTailCallElimCallsMarkedTail); local
[all...]
H A DJumpThreading.cpp270 if (const CallInst *CI = dyn_cast<CallInst>(I)) {
271 if (CI->cannotDuplicate())
275 else if (!isa<IntrinsicInst>(CI))
277 else if (!CI->getType()->isVectorTy())
403 Constant *CI = LVI->getConstantOnEdge(InVal, local
406 if (Constant *KC = getKnownConstant(CI, Preference))
482 if (ConstantInt *CI = dyn_cast<ConstantInt>(BO->getOperand(1))) {
490 Constant *Folded = ConstantExpr::get(BO->getOpcode(), V, CI);
592 if (ConstantInt *CI = dyn_cast<ConstantInt>(Cond)) {
594 KnownCond = CI
613 Constant *CI = LVI->getConstant(V, BB, CxtI); local
[all...]
H A DLoopIdiomRecognize.cpp577 CallInst *CI = IRBuilder.CreateCall(Func, Ops); local
578 CI->setDebugLoc(DL);
580 return CI;
883 // TODO: If CI is larger than 16-bytes, we can try slicing it in half to see
H A DLoopRerollPass.cpp675 ConstantInt *CI = nullptr; local
686 CI = dyn_cast<ConstantInt>(BO->getOperand(1));
689 CI = dyn_cast<ConstantInt>(LastOperand);
692 if (!CI) {
702 int64_t V = CI->getValue().getSExtValue();
H A DSCCP.cpp528 ConstantInt *CI = BCValue.getConstantInt(); local
529 if (!CI) {
538 Succs[CI->isZero()] = true;
554 ConstantInt *CI = SCValue.getConstantInt(); local
556 if (!CI) { // Overdefined or undefined condition?
563 Succs[SI->findCaseValue(CI).getSuccessorIndex()] = true;
600 ConstantInt *CI = BCValue.getConstantInt(); local
601 if (!CI)
605 return BI->getSuccessor(CI->isZero()) == To;
617 ConstantInt *CI local
[all...]
H A DScalarizer.cpp463 bool Scalarizer::visitCastInst(CastInst &CI) { argument
464 VectorType *VT = dyn_cast<VectorType>(CI.getDestTy());
469 IRBuilder<> Builder(CI.getParent(), &CI);
470 Scatterer Op0 = scatter(&CI, CI.getOperand(0));
475 Res[I] = Builder.CreateCast(CI.getOpcode(), Op0[I], VT->getElementType(),
476 CI.getName() + ".i" + Twine(I));
477 gather(&CI, Res);
/external/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp443 Constant *CI = ConstantInt::get(I32, Ran->Rand() % (Width*2)); variable
446 CI = UndefValue::get(I32);
447 Idxs.push_back(CI);
/external/llvm/utils/TableGen/
H A DCodeGenInstruction.h119 const CGIOperandList::ConstraintInfo &CI = Constraints[j]; local
120 if (CI.isTied()) return CI.getTiedOperand();
/external/clang/lib/CodeGen/
H A DCGExprConstant.cpp151 llvm::ConstantInt *CI) {
166 llvm::APInt FieldValue = CI->getValue();
392 if (auto *CI = dyn_cast<llvm::ConstantInt>(EltInit)) {
393 AppendBitField(*Field, Layout.getFieldOffset(FieldNo), CI);
149 AppendBitField(const FieldDecl *Field, uint64_t FieldOffset, llvm::ConstantInt *CI) argument
/external/clang/lib/Frontend/
H A DCompilerInvocation.cpp2075 createVFSFromCompilerInvocation(const CompilerInvocation &CI, argument
2077 if (CI.getHeaderSearchOpts().VFSOverlayFiles.empty())
2083 for (const std::string &File : CI.getHeaderSearchOpts().VFSOverlayFiles) {
/external/clang/lib/StaticAnalyzer/Frontend/
H A DAnalysisConsumer.cpp696 ento::CreateAnalysisConsumer(CompilerInstance &CI) { argument
698 CI.getPreprocessor().getDiagnostics().setWarningsAsErrors(false);
700 AnalyzerOptionsRef analyzerOpts = CI.getAnalyzerOpts();
704 CI.getPreprocessor(), CI.getFrontendOpts().OutputFile, analyzerOpts,
705 CI.getFrontendOpts().Plugins,
706 hasModelPath ? new ModelInjector(CI) : nullptr);
/external/clang/test/CXX/drs/
H A Ddr4xx.cpp718 typedef const int CI; typedef in namespace:dr466
720 void f(int *a, CI *b, VI *c) {
722 a->~CI();
725 a->CI::~CI();
728 a->CI::~VI(); // FIXME: This is invalid; CI and VI are not the same scalar type.
731 b->~CI();
734 b->CI::~CI();
[all...]
/external/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfCompileUnit.cpp87 const ConstantInt *CI = dyn_cast_or_null<ConstantInt>(CE->getOperand(1)); local
88 if (!CI || !CI->isZero())
179 } else if (const ConstantInt *CI =
181 addConstantValue(*VariableDIE, CI, GTy);
/external/llvm/lib/CodeGen/
H A DMachineLICM.cpp290 DenseMap<unsigned, std::vector<const MachineInstr*> >::iterator &CI);
1311 DenseMap<unsigned, std::vector<const MachineInstr*> >::iterator &CI) {
1314 if (CI == CSEMap.end() || MI->isImplicitDef())
1317 if (const MachineInstr *Dup = LookForDuplicate(MI, CI->second)) {
1372 CI = CSEMap.find(Opcode); local
1375 if (CI == CSEMap.end() || MI->isImplicitDef())
1378 return LookForDuplicate(MI, CI->second) != nullptr;
1415 CI = CSEMap.find(Opcode); local
1416 if (!EliminateCSE(MI, CI)) {
1433 if (CI !
1310 EliminateCSE(MachineInstr *MI, DenseMap<unsigned, std::vector<const MachineInstr*> >::iterator &CI) argument
[all...]
/external/llvm/lib/IR/
H A DConstantFold.cpp167 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) {
177 CI->getValue()));
222 if (ConstantInt *CI = dyn_cast<ConstantInt>(C)) {
223 APInt V = CI->getValue();
227 return ConstantInt::get(CI->getContext(), V);
652 ConstantInt *CI = cast<ConstantInt>(CE->getOperand(2)); local
653 if (CI->isOne() &&
671 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) {
672 APInt api = CI->getValue();
686 if (ConstantInt *CI
1994 isIndexInRangeOfSequentialType(const SequentialType *STy, const ConstantInt *CI) argument
[all...]
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp232 if (ConstantInt *CI = dyn_cast<ConstantInt>(Op1)) {
237 const APInt & Val = CI->getValue();
268 // Canonicalize (X+C1)*CI -> X*CI+C1*CI.
274 // Only go forward with the transform if C1*CI simplifies to a tidier
976 const APInt &CI = local
979 if (CI != 1)
980 N = IC.Builder->CreateAdd(N, ConstantInt::get(N->getType(), CI.logBase2()));
H A DInstCombineVectorOps.cpp54 if (CmpInst *CI = dyn_cast<CmpInst>(I))
55 if (CI->hasOneUse() &&
56 (CheapToScalarize(CI->getOperand(0), isConstant) ||
57 CheapToScalarize(CI->getOperand(1), isConstant)))
281 } else if (CastInst *CI = dyn_cast<CastInst>(I)) {
284 if (CI->hasOneUse() && (CI->getOpcode() != Instruction::BitCast)) {
285 Value *EE = Builder->CreateExtractElement(CI->getOperand(0),
288 return CastInst::Create(CI->getOpcode(), EE, EI.getType());
647 ConstantInt *CI local
[all...]
/external/llvm/lib/Transforms/Utils/
H A DInlineFunction.cpp56 bool llvm::InlineFunction(CallInst *CI, InlineFunctionInfo &IFI, argument
58 return InlineFunction(CallSite(CI), IFI, InsertLifetime);
192 CallInst *CI = dyn_cast<CallInst>(I); local
196 if (!CI || CI->doesNotThrow() || isa<InlineAsm>(CI->getCalledValue()))
201 BasicBlock *Split = BB->splitBasicBlock(CI, CI->getName()+".noexc");
207 ImmutableCallSite CS(CI);
209 InvokeInst *II = InvokeInst::Create(CI
1120 CallInst *CI = dyn_cast<CallInst>(&I); local
[all...]
H A DLocal.cpp116 ConstantInt *CI = dyn_cast<ConstantInt>(SI->getCondition()); local
130 if (i.getCaseValue() == CI) {
147 ConstantInt *CI = local
149 assert(CI);
150 Weights.push_back(CI->getValue().getZExtValue());
175 if (CI && !TheOnlyDest) {
326 if (CallInst *CI = isFreeCall(I, TLI))
327 if (Constant *C = dyn_cast<Constant>(CI->getArgOperand(0)))
1076 else if (CallInst *CI = dyn_cast<CallInst>(U)) {
1082 DDI->getDebugLoc(), CI);
[all...]

Completed in 4408 milliseconds

1234567