/external/llvm/include/llvm-c/ |
H A D | Object.h | 40 void LLVMDisposeSectionIterator(LLVMSectionIteratorRef SI); 42 LLVMSectionIteratorRef SI); 43 void LLVMMoveToNextSection(LLVMSectionIteratorRef SI); 44 const char *LLVMGetSectionName(LLVMSectionIteratorRef SI); 45 uint64_t LLVMGetSectionSize(LLVMSectionIteratorRef SI); 46 const char *LLVMGetSectionContents(LLVMSectionIteratorRef SI); 62 inline section_iterator *unwrap(LLVMSectionIteratorRef SI) { argument 63 return reinterpret_cast<section_iterator*>(SI); 67 wrap(const section_iterator *SI) { argument 69 (const_cast<section_iterator*>(SI)); [all...] |
/external/llvm/include/llvm/Transforms/Utils/ |
H A D | BasicBlockUtils.h | 115 inline BasicBlock *SplitCriticalEdge(BasicBlock *BB, succ_iterator SI, argument 117 return SplitCriticalEdge(BB->getTerminator(), SI.getSuccessorIndex(), P);
|
/external/llvm/lib/Object/ |
H A D | Object.cpp | 30 section_iterator SI = unwrap(ObjectFile)->begin_sections(); local 31 return wrap(new section_iterator(SI)); 34 void LLVMDisposeSectionIterator(LLVMSectionIteratorRef SI) { argument 35 delete unwrap(SI); 39 LLVMSectionIteratorRef SI) { 40 return (*unwrap(SI) == unwrap(ObjectFile)->end_sections()) ? 1 : 0; 43 void LLVMMoveToNextSection(LLVMSectionIteratorRef SI) { argument 45 unwrap(SI)->increment(ec); 49 const char *LLVMGetSectionName(LLVMSectionIteratorRef SI) { argument 51 if (error_code ec = (*unwrap(SI)) 38 LLVMIsSectionIteratorAtEnd(LLVMObjectFileRef ObjectFile, LLVMSectionIteratorRef SI) argument 56 LLVMGetSectionSize(LLVMSectionIteratorRef SI) argument 63 LLVMGetSectionContents(LLVMSectionIteratorRef SI) argument [all...] |
/external/llvm/lib/Transforms/Scalar/ |
H A D | BasicBlockPlacement.cpp | 127 succ_iterator SI = succ_begin(BB), E = succ_end(BB); local 130 for (; SI != E && PlacedBlocks.count(*SI); ++SI) 132 if (SI == E) return; // No more successors to place. 134 double MaxExecutionCount = PI->getExecutionCount(*SI); 135 BasicBlock *MaxSuccessor = *SI; 138 for (; SI != E; ++SI) 139 if (!PlacedBlocks.count(*SI)) { [all...] |
H A D | LowerAtomic.cpp | 103 static bool LowerStoreInst(StoreInst *SI) { argument 104 SI->setAtomic(NotAtomic); 127 } else if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) { 128 if (SI->isAtomic()) 129 LowerStoreInst(SI);
|
/external/llvm/lib/Transforms/IPO/ |
H A D | FunctionAttrs.cpp | 172 } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) { 174 if (!SI->isVolatile()) { 175 AliasAnalysis::Location Loc = AA->getLocation(SI); 288 SelectInst *SI = cast<SelectInst>(RVI); local 289 FlowsToReturn.insert(SI->getTrueValue()); 290 FlowsToReturn.insert(SI->getFalseValue());
|
/external/llvm/lib/Transforms/Utils/ |
H A D | LowerExpectIntrinsic.cpp | 44 bool HandleSwitchExpect(SwitchInst *SI); 59 bool LowerExpectIntrinsic::HandleSwitchExpect(SwitchInst *SI) { argument 60 CallInst *CI = dyn_cast<CallInst>(SI->getCondition()); 76 unsigned caseNo = SI->findCaseValue(ExpectedValue); 78 unsigned n = SI->getNumCases(); 87 SI->setMetadata(LLVMContext::MD_prof, WeightsNode); 89 SI->setCondition(ArgValue); 148 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(BB->getTerminator())) { 149 if (HandleSwitchExpect(SI))
|
H A D | LowerSwitch.cpp | 61 void processSwitchInst(SwitchInst *SI); 67 unsigned Clusterify(CaseVector& Cases, SwitchInst *SI); 100 if (SwitchInst *SI = dyn_cast<SwitchInst>(Cur->getTerminator())) { 102 processSwitchInst(SI); 236 unsigned LowerSwitch::Clusterify(CaseVector& Cases, SwitchInst *SI) { argument 240 for (unsigned i = 1; i < SI->getNumSuccessors(); ++i) 241 Cases.push_back(CaseRange(SI->getSuccessorValue(i), 242 SI->getSuccessorValue(i), 243 SI->getSuccessor(i))); 276 void LowerSwitch::processSwitchInst(SwitchInst *SI) { argument [all...] |
/external/llvm/lib/Analysis/ |
H A D | SparsePropagation.cpp | 173 SwitchInst &SI = cast<SwitchInst>(TI); local 176 SCValue = getOrInitValueState(SI.getCondition()); 178 SCValue = getLatticeState(SI.getCondition()); 191 Constant *C = LatticeFunc->GetConstant(SCValue, SI.getCondition(), *this); 198 Succs[SI.findCaseValue(cast<ConstantInt>(C))] = true;
|
H A D | AliasAnalysis.cpp | 228 AliasAnalysis::Location AliasAnalysis::getLocation(const StoreInst *SI) { argument 229 return Location(SI->getPointerOperand(), 230 getTypeStoreSize(SI->getValueOperand()->getType()), 231 SI->getMetadata(LLVMContext::MD_tbaa));
|
H A D | AliasSetTracker.cpp | 310 bool AliasSetTracker::add(StoreInst *SI) { argument 311 if (SI->getOrdering() > Monotonic) return addUnknown(SI); 313 if (!SI->isUnordered()) ATy = AliasSet::ModRef; 315 Value *Val = SI->getOperand(0); 316 AliasSet &AS = addPointer(SI->getOperand(1), 318 SI->getMetadata(LLVMContext::MD_tbaa), 320 if (SI->isVolatile()) AS.setVolatile(); 354 if (StoreInst *SI = dyn_cast<StoreInst>(I)) 355 return add(SI); 439 remove(StoreInst *SI) argument [all...] |
/external/llvm/lib/Archive/ |
H A D | ArchiveReader.cpp | 461 SymTabType::iterator SI = symTab.find(symbol); local 462 if (SI == symTab.end()) 472 SI->second + // offset in symbol-table-less file
|
/external/llvm/lib/CodeGen/ |
H A D | GCStrategy.cpp | 183 if (StoreInst *SI = dyn_cast<StoreInst>(IP)) 185 dyn_cast<AllocaInst>(SI->getOperand(1)->stripPointerCasts())) 193 StoreInst* SI = new StoreInst(ConstantPointerNull::get(cast<PointerType>( local 196 SI->insertAfter(*I);
|
H A D | Spiller.cpp | 223 LiveInterval &SI = lss->getOrCreateInterval(SS, RC); local 224 if (!SI.hasAtLeastOneValue()) 225 SI.getNextValue(SlotIndex(), 0, lss->getVNInfoAllocator()); 226 SI.MergeRangesInAsValue(LRE.getParent(), SI.getValNumInfo(0));
|
H A D | MachineCSE.cpp | 347 DenseMap<MachineBasicBlock*, ScopeType*>::iterator SI = ScopeMap.find(MBB); local 348 assert(SI != ScopeMap.end()); 349 ScopeMap.erase(SI); 350 delete SI->second;
|
/external/llvm/lib/Target/MBlaze/ |
H A D | MBlazeFrameLowering.cpp | 129 MachineBasicBlock::iterator SI = I; local 130 for (SI++; SI != MIE; ++SI) { 131 if (!SI->getOperand(0).isReg() || 132 !SI->getOperand(1).isFI() || 133 SI->getOpcode() != MBlaze::SWI) continue; 135 int FI = SI->getOperand(1).getIndex(); 136 if (SI->getOperand(0).getReg() != FIReg || 140 if (SI [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineLoadStoreAlloca.cpp | 221 if (SelectInst *SI = dyn_cast<SelectInst>(Op)) { 224 if (isSafeToLoadUnconditionally(SI->getOperand(1), SI, Align, TD) && 225 isSafeToLoadUnconditionally(SI->getOperand(2), SI, Align, TD)) { 226 LoadInst *V1 = Builder->CreateLoad(SI->getOperand(1), 227 SI->getOperand(1)->getName()+".val"); 228 LoadInst *V2 = Builder->CreateLoad(SI->getOperand(2), 229 SI->getOperand(2)->getName()+".val"); 232 return SelectInst::Create(SI 256 InstCombineStoreToCast(InstCombiner &IC, StoreInst &SI) argument 369 visitStoreInst(StoreInst &SI) argument 499 SimplifyStoreAtEndOfBlock(StoreInst &SI) argument [all...] |
H A D | InstCombineShifts.cpp | 32 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) 33 if (Instruction *R = FoldOpIntoSelect(I, SI)) 164 SelectInst *SI = cast<SelectInst>(I); local 165 return CanEvaluateShifted(SI->getTrueValue(), NumBits, isLeftShift, IC) && 166 CanEvaluateShifted(SI->getFalseValue(), NumBits, isLeftShift, IC); 351 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) 352 if (Instruction *R = FoldOpIntoSelect(I, SI))
|
H A D | InstCombineAddSub.cpp | 257 if (SelectInst *SI = dyn_cast<SelectInst>(LHS)) 258 if (Instruction *R = FoldOpIntoSelect(I, SI)) 264 SelectInst *SI = dyn_cast<SelectInst>(LHS); local 266 if (!SI) { 267 SI = dyn_cast<SelectInst>(RHS); 270 if (SI && SI->hasOneUse()) { 271 Value *TV = SI->getTrueValue(); 272 Value *FV = SI->getFalseValue(); 279 return SelectInst::Create(SI [all...] |
H A D | InstCombineMulDivRem.cpp | 115 if (BinaryOperator *SI = dyn_cast<BinaryOperator>(Op0)) 116 if (SI->getOpcode() == Instruction::Shl) 117 if (Constant *ShOp = dyn_cast<Constant>(SI->getOperand(1))) 118 return BinaryOperator::CreateMul(SI->getOperand(0), 166 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) 167 if (Instruction *R = FoldOpIntoSelect(I, SI)) 278 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) 279 if (Instruction *R = FoldOpIntoSelect(I, SI)) 297 SelectInst *SI = cast<SelectInst>(I.getOperand(1)); local 301 if (Constant *ST = dyn_cast<Constant>(SI [all...] |
H A D | InstCombineSelect.cpp | 26 SelectInst *SI = dyn_cast<SelectInst>(V); local 27 if (SI == 0) return SPF_UNKNOWN; 29 ICmpInst *ICI = dyn_cast<ICmpInst>(SI->getCondition()); 36 if (SI->getTrueValue() == ICI->getOperand(0) && 37 SI->getFalseValue() == ICI->getOperand(1)) { 52 if (SI->getTrueValue() == ICI->getOperand(1) && 53 SI->getFalseValue() == ICI->getOperand(0)) { 124 Instruction *InstCombiner::FoldSelectOpOp(SelectInst &SI, Instruction *TI, argument 137 Value *NewSI = Builder->CreateSelect(SI.getCondition(), TI->getOperand(0), 138 FI->getOperand(0), SI 205 FoldSelectIntoOp(SelectInst &SI, Value *TrueVal, Value *FalseVal) argument 343 visitSelectInstWithICmp(SelectInst &SI, ICmpInst *ICI) argument 526 CanSelectOperandBeMappingIntoPredBlock(const Value *V, const SelectInst &SI) argument 583 foldSelectICmpAnd(const SelectInst &SI, ConstantInt *TrueVal, ConstantInt *FalseVal, InstCombiner::BuilderTy *Builder) argument 649 visitSelectInst(SelectInst &SI) argument [all...] |
/external/clang/lib/ARCMigrate/ |
H A D | TransAutoreleasePool.cpp | 305 Stmt::child_iterator SI = scope.End, SE = compoundS->body_end(); local 306 ++SI; 309 if (SI != SE) 310 if (ReturnStmt *retS = dyn_cast<ReturnStmt>(*SI)) 315 ++SI; // the return will be included in scope, don't check it. 318 for (; SI != SE; ++SI) { 321 declarationLoc).TraverseStmt(*SI);
|
/external/clang/utils/TableGen/ |
H A D | NeonEmitter.h | 153 Record *SI = R.getClass("SInst"); local 156 ClassMap[SI] = ClassS;
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
H A D | FunctionLoweringInfo.cpp | 126 DenseMap<const AllocaInst *, int>::iterator SI = local 128 if (SI != StaticAllocaMap.end()) { // Check for VLAs. 129 int FI = SI->second;
|
/external/llvm/lib/Target/ |
H A D | TargetData.cpp | 79 const uint64_t *SI = local 81 assert(SI != &MemberOffsets[0] && "Offset not in structure type!"); 82 --SI; 83 assert(*SI <= Offset && "upper_bound didn't work"); 84 assert((SI == &MemberOffsets[0] || *(SI-1) <= Offset) && 85 (SI+1 == &MemberOffsets[NumElements] || *(SI+1) > Offset) && 93 return SI-&MemberOffsets[0];
|