/external/llvm/lib/Transforms/InstCombine/ |
InstCombineMulDivRem.cpp | 112 if (ConstantInt *CI = dyn_cast<ConstantInt>(Op1)) { 119 ConstantExpr::getShl(CI, ShOp)); 121 const APInt &Val = CI->getValue(); 130 // Canonicalize (X+C1)*CI -> X*CI+C1*CI. 134 Value *Add = Builder->CreateMul(X, CI); 135 return BinaryOperator::CreateAdd(Add, Builder->CreateMul(C1, CI)); 143 const APInt & Val = CI->getValue(); 466 { const APInt *CI; Value *N [all...] |
InstCombineAndOrXor.cpp | 44 if (CmpInst *CI = dyn_cast<CmpInst>(V)) 45 return CI->hasOneUse(); 275 ConstantInt *CI = ConstantInt::get(AndRHS->getContext(), 278 if (CI->getValue() == ShlMask) 282 if (CI != AndRHS) { // Reducing bits set in and. 283 TheAnd.setOperand(1, CI); 296 ConstantInt *CI = ConstantInt::get(Op->getContext(), 299 if (CI->getValue() == ShrMask) 303 if (CI != AndRHS) { 304 TheAnd.setOperand(1, CI); // Reduce bits set in and cst [all...] |
InstCombineSelect.cpp | 356 if (ConstantInt *CI = dyn_cast<ConstantInt>(CmpRHS)) { 359 && CI->isMinValue(Pred == ICmpInst::ICMP_SLT)) 363 && CI->isMaxValue(Pred == ICmpInst::ICMP_SGT)) 378 AdjustedRHS = ConstantInt::get(CI->getContext(), CI->getValue() + 1); 380 AdjustedRHS = ConstantInt::get(CI->getContext(), CI->getValue() - 1); [all...] |
/external/llvm/lib/Transforms/Utils/ |
PromoteMemoryToRegister.cpp | 498 for (DomTreeNode::iterator CI = Node->begin(), CE = Node->end(); 499 CI != CE; ++CI) { 500 DomLevels[*CI] = ChildLevel; 501 Worklist.push_back(*CI); 812 for (DomTreeNode::iterator CI = Node->begin(), CE = Node->end(); CI != CE; 813 ++CI) { 814 if (!Visited.count(*CI)) 815 Worklist.push_back(*CI); [all...] |
/external/llvm/lib/Analysis/ |
ConstantFolding.cpp | 216 ConstantInt *CI = dyn_cast<ConstantInt>(*i); 217 if (!CI) return false; // Index isn't a simple constant? 218 if (CI->isZero()) continue; // Not adding anything. 222 Offset += TD.getStructLayout(ST)->getElementOffset(CI->getZExtValue()); 225 Offset += TD.getTypeAllocSize(SQT->getElementType())*CI->getSExtValue(); 249 if (ConstantInt *CI = dyn_cast<ConstantInt>(C)) { 250 if (CI->getBitWidth() > 64 || 251 (CI->getBitWidth() & 7) != 0) 254 uint64_t Val = CI->getZExtValue(); 255 unsigned IntBytes = unsigned(CI->getBitWidth()/8) [all...] |
ScalarEvolutionExpander.cpp | 38 if (CastInst *CI = dyn_cast<CastInst>(U)) 39 if (CI->getOpcode() == Op) { 41 if (BasicBlock::iterator(CI) != IP) { 46 NewCI->takeName(CI); 47 CI->replaceAllUsesWith(NewCI); 48 CI->setOperand(0, UndefValue::get(V->getType())); 52 rememberInstruction(CI); 53 return CI; 82 if (CastInst *CI = dyn_cast<CastInst>(V)) 83 if ((CI->getOpcode() == Instruction::PtrToInt | [all...] |
BasicAliasAnalysis.cpp | 114 } else if (const CallInst* CI = extractMallocCall(V)) { 117 if (const ConstantInt* C = dyn_cast<ConstantInt>(CI->getArgOperand(0))) 692 if (const CallInst *CI = dyn_cast<CallInst>(CS.getInstruction())) 693 if (CI->isTailCall()) 703 for (ImmutableCallSite::arg_iterator CI = CS.arg_begin(), CE = CS.arg_end(); 704 CI != CE; ++CI, ++ArgNo) { 708 if (!(*CI)->getType()->isPointerTy() || 717 if (!isNoAlias(Location(*CI), Location(Object))) { [all...] |
InstructionSimplify.cpp | [all...] |
/external/llvm/lib/CodeGen/SelectionDAG/ |
FunctionLoweringInfo.cpp | 293 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { 294 APInt Val = CI->getValue().zextOrTrunc(BitWidth); 328 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { 329 APInt Val = CI->getValue().zextOrTrunc(BitWidth); 391 if (const ConstantInt *CI = dyn_cast<ConstantInt>(I.getArgOperand(i))) { 392 unsigned FilterLength = CI->getZExtValue();
|
FastISel.cpp | 162 if (const ConstantInt *CI = dyn_cast<ConstantInt>(V)) { 163 if (CI->getValue().getActiveBits() <= 64) 164 Reg = FastEmit_i(VT, VT, ISD::Constant, CI->getZExtValue()); 344 if (ConstantInt *CI = dyn_cast<ConstantInt>(I->getOperand(0))) 352 Op1IsKill, CI->getZExtValue(), 369 if (ConstantInt *CI = dyn_cast<ConstantInt>(I->getOperand(1))) { 370 uint64_t Imm = CI->getZExtValue(); 453 if (const ConstantInt *CI = dyn_cast<ConstantInt>(Idx)) { 454 if (CI->isZero()) continue; 456 TD.getTypeAllocSize(Ty)*cast<ConstantInt>(CI)->getSExtValue() [all...] |
/external/llvm/lib/Transforms/Scalar/ |
ObjCARC.cpp | 284 const CallInst *CI = cast<CallInst>(I); 286 if (const Function *F = CI->getCalledFunction()) { 312 return GetCallSiteClass(CI); 366 if (const CallInst *CI = dyn_cast<CallInst>(V)) { 367 if (const Function *F = CI->getCalledFunction()) 442 static void EraseInstruction(Instruction *CI) { 443 Value *OldArg = cast<CallInst>(CI)->getArgOperand(0); 445 bool Unused = CI->use_empty(); 449 assert(IsForwarding(GetBasicInstructionClass(CI)) && 451 CI->replaceAllUsesWith(OldArg) [all...] |
JumpThreading.cpp | 241 if (const CallInst *CI = dyn_cast<CallInst>(I)) { 242 if (!isa<IntrinsicInst>(CI)) 244 else if (!CI->getType()->isVectorTy()) 369 Constant *CI = LVI->getConstantOnEdge(InVal, 371 if (Constant *KC = getKnownConstant(CI, Preference)) 447 if (ConstantInt *CI = dyn_cast<ConstantInt>(BO->getOperand(1))) { 455 Constant *Folded = ConstantExpr::get(BO->getOpcode(), V, CI); 556 if (ConstantInt *CI = dyn_cast<ConstantInt>(Cond)) { 558 KnownCond = CI->isOne(); 577 Constant *CI = LVI->getConstant(V, BB) [all...] |
SimplifyCFGPass.cpp | 125 if (CallInst *CI = dyn_cast<CallInst>(BBI)) { 126 if (CI->doesNotReturn()) {
|
SCCP.cpp | 564 ConstantInt *CI = BCValue.getConstantInt(); 565 if (CI == 0) { 574 Succs[CI->isZero()] = true; 590 ConstantInt *CI = SCValue.getConstantInt(); 592 if (CI == 0) { // Overdefined or undefined condition? 599 Succs[SI->findCaseValue(CI)] = true; 636 ConstantInt *CI = BCValue.getConstantInt(); 637 if (CI == 0) 641 return BI->getSuccessor(CI->isZero()) == To; 653 ConstantInt *CI = SCValue.getConstantInt() [all...] |
/external/clang/lib/ARCMigrate/ |
FileRemapper.cpp | 193 void FileRemapper::applyMappings(CompilerInvocation &CI) const { 194 PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); 208 void FileRemapper::transferMappingsAndClear(CompilerInvocation &CI) { 209 PreprocessorOptions &PPOpts = CI.getPreprocessorOpts();
|
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/ |
p1.cpp | 32 typedef constexpr int CI; // expected-error {{typedef cannot be constexpr}}
|
/external/clang/tools/libclang/ |
Indexing.cpp | 205 virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI, 207 CI.getDiagnostics().setClient(new IndexingDiagnosticConsumer(IndexCtx), 209 IndexCtx.setASTContext(CI.getASTContext()); 210 Preprocessor &PP = CI.getPreprocessor();
|
/external/llvm/unittests/VMCore/ |
ValueMapTest.cpp | 82 typename ValueMap<TypeParam*, int>::const_iterator CI = 84 ASSERT_TRUE(CI != CVM.end()); 85 EXPECT_EQ(this->BitcastV.get(), CI->first); 86 EXPECT_EQ(7, CI->second);
|
/external/v8/tools/gcmole/ |
gcmole.cc | 475 clang::ASTConsumer *CreateASTConsumer(clang::CompilerInstance &CI, 477 return new ConsumerType(CI.getDiagnostics(), CI.getSourceManager()); 480 bool ParseArgs(const clang::CompilerInstance &CI,
|
/external/llvm/lib/Target/ARM/ |
ARMFastISel.cpp | 551 const ConstantInt *CI = cast<ConstantInt>(C); 552 if (Subtarget->hasV6T2Ops() && isUInt<16>(CI->getSExtValue())) { 556 .addImm(CI->getSExtValue())); 768 if (const ConstantInt *CI = dyn_cast<ConstantInt>(Op)) { 770 TmpOffset += CI->getSExtValue() * S; 780 ConstantInt *CI = 782 TmpOffset += CI->getSExtValue() * S; [all...] |
/external/llvm/lib/CodeGen/AsmPrinter/ |
DwarfCompileUnit.cpp | 506 bool CompileUnit::addConstantValue(DIE *Die, const ConstantInt *CI, 508 unsigned CIBitWidth = CI->getBitWidth(); 520 addUInt(Die, dwarf::DW_AT_const_value, form, CI->getZExtValue()); 522 addSInt(Die, dwarf::DW_AT_const_value, form, CI->getSExtValue()); 529 const APInt Val = CI->getValue(); [all...] |
/external/llvm/lib/CodeGen/ |
ELFWriter.cpp | 475 } else if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) { 477 GblS.emitByte(CI->getZExtValue()); 479 GblS.emitWord16(CI->getZExtValue()); 481 GblS.emitWord32(CI->getZExtValue()); 483 EmitGlobalConstantLargeInt(CI, GblS); 610 void ELFWriter::EmitGlobalConstantLargeInt(const ConstantInt *CI, 613 unsigned BitWidth = CI->getBitWidth(); 617 const uint64_t *RawData = CI->getValue().getRawData(); [all...] |
/external/clang/lib/Rewrite/ |
RewriteObjC.cpp | [all...] |
/external/llvm/lib/VMCore/ |
AsmWriter.cpp | 503 if (const CallInst *CI = dyn_cast<CallInst>(I)) { 504 if (Function *F = CI->getCalledFunction()) 701 if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) { 702 if (CI->getType()->isIntegerTy(1)) { 703 Out << (CI->getZExtValue() ? "true" : "false"); 706 Out << CI->getValue(); [all...] |
/external/clang/lib/Lex/ |
PPDirectives.cpp | [all...] |