Home
last modified time | relevance | path

Searched refs:TI (Results 1 – 25 of 245) sorted by relevance

12345678910

/llvm-project-15.0.7/llvm/unittests/Support/
H A DTrigramIndexTest.cpp27 TI->insert(Rule); in makeTrigramIndex()
28 return TI; in makeTrigramIndex()
35 EXPECT_FALSE(TI->isDefeated()); in TEST_F()
42 EXPECT_FALSE(TI->isDefeated()); in TEST_F()
49 EXPECT_TRUE(TI->isDefeated()); in TEST_F()
58 EXPECT_TRUE(TI->isDefeated()); in TEST_F()
65 EXPECT_FALSE(TI->isDefeated()); in TEST_F()
75 EXPECT_TRUE(TI->isDefeated()); in TEST_F()
81 EXPECT_TRUE(TI->isDefeated()); in TEST_F()
87 EXPECT_TRUE(TI->isDefeated()); in TEST_F()
[all …]
/llvm-project-15.0.7/clang/lib/Frontend/
H A DInitPreprocessor.cpp992 TI.getTypeWidth(TI.getPtrDiffType(0)), TI, Builder); in InitializePredefinedMacros()
994 TI.getTypeWidth(TI.getSizeType()), TI, Builder); in InitializePredefinedMacros()
996 TI.getTypeWidth(TI.getWCharType()), TI, Builder); in InitializePredefinedMacros()
998 TI.getTypeWidth(TI.getWIntType()), TI, Builder); in InitializePredefinedMacros()
1027 assert(TI.getTypeWidth(TI.getUIntPtrType()) == in InitializePredefinedMacros()
1060 if (TI.getShortWidth() > TI.getCharWidth()) in InitializePredefinedMacros()
1063 if (TI.getIntWidth() > TI.getShortWidth()) in InitializePredefinedMacros()
1066 if (TI.getLongWidth() > TI.getIntWidth()) in InitializePredefinedMacros()
1076 if (TI.getShortWidth() > TI.getCharWidth()) { in InitializePredefinedMacros()
1082 if (TI.getIntWidth() > TI.getShortWidth()) { in InitializePredefinedMacros()
[all …]
/llvm-project-15.0.7/llvm/lib/DebugInfo/CodeView/
H A DTypeIndex.cpp71 StringRef TypeIndex::simpleTypeName(TypeIndex TI) { in simpleTypeName() argument
72 assert(TI.isNoneType() || TI.isSimple()); in simpleTypeName()
74 if (TI.isNoneType()) in simpleTypeName()
77 if (TI == TypeIndex::NullptrT()) in simpleTypeName()
82 if (SimpleTypeName.Kind == TI.getSimpleKind()) { in simpleTypeName()
83 if (TI.getSimpleMode() == SimpleTypeMode::Direct) in simpleTypeName()
96 if (!TI.isNoneType()) { in printTypeIndex()
97 if (TI.isSimple()) in printTypeIndex()
98 TypeName = TypeIndex::simpleTypeName(TI); in printTypeIndex()
100 TypeName = Types.getTypeName(TI); in printTypeIndex()
[all …]
H A DLazyRandomTypeCollection.cpp152 if (contains(TI)) in ensureTypeExists()
155 return visitRangeForType(TI); in ensureTypeExists()
172 assert(!TI.isSimple()); in visitRangeForType()
174 return fullScanForType(TI); in visitRangeForType()
176 auto Next = llvm::upper_bound(PartialOffsets, TI, in visitRangeForType()
206 TypeIndex TI = TypeIndex::fromArrayIndex(0); in getFirst() local
207 if (auto EC = ensureTypeExists(TI)) { in getFirst()
211 return TI; in getFirst()
226 Error LazyRandomTypeCollection::fullScanForType(TypeIndex TI) { in fullScanForType() argument
227 assert(!TI.isSimple()); in fullScanForType()
[all …]
H A DTypeHashing.cpp55 for (TypeIndex TI : Indices) { in hashType() local
57 if (TI.isSimple() || TI.isNoneType()) { in hashType()
58 const uint8_t *IndexBytes = reinterpret_cast<const uint8_t *>(&TI); in hashType()
61 if (TI.toArrayIndex() >= Prev.size() || in hashType()
62 Prev[TI.toArrayIndex()].empty()) { in hashType()
67 BytesToHash = Prev[TI.toArrayIndex()].Hash; in hashType()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DMacroParenthesesCheck.cpp115 for (auto TI = MI->tokens_begin(), TE = MI->tokens_end(); TI != TE; ++TI) { in replacementList() local
116 const Token &Tok = *TI; in replacementList()
134 if (TI == MI->tokens_begin() && (TI + 1) != TE && in replacementList()
164 for (auto TI = MI->tokens_begin(), TE = MI->tokens_end(); TI != TE; ++TI) { in argument() local
166 if (TI == MI->tokens_begin()) in argument()
170 if ((TI + 1) == MI->tokens_end()) in argument()
173 const Token &Prev = *(TI - 1); in argument()
174 const Token &Next = *(TI + 1); in argument()
176 const Token &Tok = *TI; in argument()
233 TI + 2 != MI->tokens_end() && (TI + 2)->is(tok::r_paren)) in argument()
/llvm-project-15.0.7/llvm/unittests/DebugInfo/CodeView/
H A DRandomAccessVisitorTest.cpp132 if (!Types.contains(TI)) in ValidateDatabaseRecord()
214 TypeIndex TI = TypeIndex::fromArrayIndex(I); in TEST_F() local
215 CVType T = Types.getType(TI); in TEST_F()
243 TypeIndex TI = TypeIndex::fromArrayIndex(I); in TEST_F() local
244 CVType T = Types.getType(TI); in TEST_F()
272 TypeIndex TI = TypeIndex::fromArrayIndex(I); in TEST_F() local
273 CVType T = Types.getType(TI); in TEST_F()
303 TypeIndex TI = TypeIndex::fromArrayIndex(I); in TEST_F() local
304 CVType T = Types.getType(TI); in TEST_F()
333 TypeIndex TI = TypeIndex::fromArrayIndex(I); in TEST_F() local
[all …]
/llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/Native/
H A DNativeEnumTypes.cpp30 Optional<TypeIndex> TI = Types.getFirst(); in NativeEnumTypes() local
31 while (TI) { in NativeEnumTypes()
32 CVType CVT = Types.getType(*TI); in NativeEnumTypes()
37 Matches.push_back(*TI); in NativeEnumTypes()
46 Matches.push_back(*TI); in NativeEnumTypes()
49 TI = Types.getNext(*TI); in NativeEnumTypes()
H A DNativeTypePointer.cpp21 codeview::TypeIndex TI) in NativeTypePointer() argument
22 : NativeRawSymbol(Session, PDB_SymType::PointerType, Id), TI(TI) { in NativeTypePointer()
23 assert(TI.isSimple()); in NativeTypePointer()
24 assert(TI.getSimpleMode() != SimpleTypeMode::Direct); in NativeTypePointer()
28 codeview::TypeIndex TI, in NativeTypePointer() argument
30 : NativeRawSymbol(Session, PDB_SymType::PointerType, Id), TI(TI), in NativeTypePointer()
83 switch (TI.getSimpleMode()) { in getLength()
103 TypeIndex Referent = Record ? Record->ReferentType : TI.makeDirect(); in getTypeId()
H A DTpiStream.cpp169 for (TypeIndex TI : HashMap[Bucket]) { in findRecordsByName() local
170 std::string ThisName = computeTypeName(*Types, TI); in findRecordsByName()
172 Result.push_back(TI); in findRecordsByName()
194 for (TypeIndex TI : HashMap[BucketIdx]) { in findFullDeclForForwardRef() local
195 CVType CVT = Types->getType(TI); in findFullDeclForForwardRef()
209 return TI; in findFullDeclForForwardRef()
216 return TI; in findFullDeclForForwardRef()
H A DNativeTypeVTShape.cpp11 codeview::TypeIndex TI, in NativeTypeVTShape() argument
13 : NativeRawSymbol(Session, PDB_SymType::VTableShape, Id), TI(TI), in NativeTypeVTShape()
/llvm-project-15.0.7/llvm/test/DebugInfo/PDB/
H A Dobj-globalhash.test17 CHECK-ONE: TI: 0x1001, LocalHash: {{.*}}, GlobalHash: A7F8CF106F39A384
19 CHECK-ONE: TI: 0x1000, LocalHash: {{.*}}, GlobalHash: A7F8CF106F39A384
23 CHECK-TWO: TI: 0x1000, LocalHash: {{.*}}, GlobalHash: 95D0616C5962F4B1
25 CHECK-TWO: TI: 0x1002, LocalHash: {{.*}}, GlobalHash: 95D0616C5962F4B1
31 CHECK-THREE: TI: 0x1002, LocalHash: {{.*}}, GlobalHash: 48D95F14F6176F4F
33 CHECK-THREE: TI: 0x1001, LocalHash: {{.*}}, GlobalHash: 48D95F14F6176F4F
40 CHECK-FOUR: TI: 0x1003, LocalHash: {{.*}}, GlobalHash: 99410CD14F5EE80D
42 CHECK-FOUR: TI: 0x1004, LocalHash: {{.*}}, GlobalHash: 99410CD14F5EE80D
47 CHECK-FIVE: TI: 0x1003, LocalHash: {{.*}}, GlobalHash: 20691EA9B88584CC
52 CHECK-SIX: TI: 0x1004, LocalHash: {{.*}}, GlobalHash: 7ACF479173341AC1
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DSparsePropagation.h198 void visitTerminator(Instruction &TI);
291 Succs.resize(TI.getNumSuccessors()); in getFeasibleSuccessors()
292 if (TI.getNumSuccessors() == 0) in getFeasibleSuccessors()
334 if (!isa<SwitchInst>(TI)) { in getFeasibleSuccessors()
340 SwitchInst &SI = cast<SwitchInst>(TI); in getFeasibleSuccessors()
351 Succs.assign(TI.getNumSuccessors(), true); in getFeasibleSuccessors()
363 Succs.assign(TI.getNumSuccessors(), true); in getFeasibleSuccessors()
374 Instruction *TI = From->getTerminator(); in isEdgeFeasible() local
386 Instruction &TI) { in visitTerminator() argument
388 getFeasibleSuccessors(TI, SuccFeasible, true); in visitTerminator()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DBreakCriticalEdges.cpp104 if (!isCriticalEdge(TI, SuccNum, Options.MergeIdenticalEdges)) in SplitCriticalEdge()
107 return SplitKnownCriticalEdge(TI, SuccNum, Options, BBName); in SplitCriticalEdge()
111 llvm::SplitKnownCriticalEdge(Instruction *TI, unsigned SuccNum, in SplitKnownCriticalEdge() argument
114 assert(!isa<IndirectBrInst>(TI) && in SplitKnownCriticalEdge()
117 BasicBlock *TIBB = TI->getParent(); in SplitKnownCriticalEdge()
118 BasicBlock *DestBB = TI->getSuccessor(SuccNum); in SplitKnownCriticalEdge()
170 NewBB = BasicBlock::Create(TI->getContext(), BBName); in SplitKnownCriticalEdge()
177 NewBI->setDebugLoc(TI->getDebugLoc()); in SplitKnownCriticalEdge()
185 TI->setSuccessor(SuccNum, NewBB); in SplitKnownCriticalEdge()
213 if (TI->getSuccessor(i) != DestBB) continue; in SplitKnownCriticalEdge()
[all …]
H A DEscapeEnumerator.cpp40 Instruction *TI = CurBB->getTerminator(); in Next() local
41 if (!isa<ReturnInst>(TI) && !isa<ResumeInst>(TI)) in Next()
45 TI = CI; in Next()
46 Builder.SetInsertPoint(TI); in Next()
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLateEHPrepare.cpp157 MachineInstr *TI = &*Pos; in recordCatchRetBBs() local
158 if (TI->getOpcode() == WebAssembly::CATCHRET) in recordCatchRetBBs()
235 MachineInstr *TI = &*Pos; in replaceFuncletReturns() local
237 switch (TI->getOpcode()) { in replaceFuncletReturns()
240 MachineBasicBlock *TBB = TI->getOperand(0).getMBB(); in replaceFuncletReturns()
242 BuildMI(MBB, TI, TI->getDebugLoc(), TII.get(WebAssembly::BR)) in replaceFuncletReturns()
244 TI->eraseFromParent(); in replaceFuncletReturns()
251 BuildMI(MBB, TI, TI->getDebugLoc(), TII.get(WebAssembly::RETHROW)) in replaceFuncletReturns()
253 TI->eraseFromParent(); in replaceFuncletReturns()
/llvm-project-15.0.7/clang/lib/Basic/
H A DOpenCLOptions.cpp123 const TargetInfo &TI, DiagnosticsEngine &Diags) { in diagnoseUnsupportedFeatureDependencies() argument
124 auto OpenCLFeaturesMap = TI.getSupportedOpenCLOpts(); in diagnoseUnsupportedFeatureDependencies()
130 if (TI.hasFeatureEnabled(OpenCLFeaturesMap, Feature) && in diagnoseUnsupportedFeatureDependencies()
131 !TI.hasFeatureEnabled(OpenCLFeaturesMap, Dep)) { in diagnoseUnsupportedFeatureDependencies()
140 const TargetInfo &TI, DiagnosticsEngine &Diags) { in diagnoseFeatureExtensionDifferences() argument
141 auto OpenCLFeaturesMap = TI.getSupportedOpenCLOpts(); in diagnoseFeatureExtensionDifferences()
145 if (TI.hasFeatureEnabled(OpenCLFeaturesMap, ExtAndFeat.first) != in diagnoseFeatureExtensionDifferences()
146 TI.hasFeatureEnabled(OpenCLFeaturesMap, ExtAndFeat.second)) { in diagnoseFeatureExtensionDifferences()
/llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/
H A DCoroElide.cpp204 auto TI = BB->getTerminator(); in hasEscapePath() local
208 if (isa<SwitchInst>(TI) && in hasEscapePath()
209 CoroSuspendSwitches.count(cast<SwitchInst>(TI))) { in hasEscapePath()
210 Worklist.push_back(cast<SwitchInst>(TI)->getSuccessor(1)); in hasEscapePath()
211 Worklist.push_back(cast<SwitchInst>(TI)->getSuccessor(2)); in hasEscapePath()
239 auto *TI = B.getTerminator(); in shouldElide() local
240 if (TI->getNumSuccessors() == 0 && !TI->isExceptionalTerminator() && in shouldElide()
241 !isa<UnreachableInst>(TI)) in shouldElide()
251 if (llvm::all_of(Terminators, [&](auto *TI) { in shouldElide() argument
252 return DT.dominates(DA, TI->getTerminator()); in shouldElide()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DCFG.cpp95 bool llvm::isCriticalEdge(const Instruction *TI, unsigned SuccNum, in isCriticalEdge() argument
97 assert(SuccNum < TI->getNumSuccessors() && "Illegal edge specification!"); in isCriticalEdge()
98 return isCriticalEdge(TI, TI->getSuccessor(SuccNum), AllowIdenticalEdges); in isCriticalEdge()
101 bool llvm::isCriticalEdge(const Instruction *TI, const BasicBlock *Dest, in isCriticalEdge() argument
103 assert(TI->isTerminator() && "Must be a terminator to have successors!"); in isCriticalEdge()
104 if (TI->getNumSuccessors() == 1) return false; in isCriticalEdge()
106 assert(is_contained(predecessors(Dest), TI->getParent()) && in isCriticalEdge()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DVPlanHCFGBuilder.cpp294 Instruction *TI = BB->getTerminator(); in buildPlainCFG() local
295 assert(TI && "Terminator expected."); in buildPlainCFG()
296 unsigned NumSuccs = TI->getNumSuccessors(); in buildPlainCFG()
299 VPBasicBlock *SuccVPBB = getOrCreateVPBB(TI->getSuccessor(0)); in buildPlainCFG()
303 VPBasicBlock *SuccVPBB0 = getOrCreateVPBB(TI->getSuccessor(0)); in buildPlainCFG()
305 VPBasicBlock *SuccVPBB1 = getOrCreateVPBB(TI->getSuccessor(1)); in buildPlainCFG()
309 assert(isa<BranchInst>(TI) && "Unsupported terminator!"); in buildPlainCFG()
312 assert(IRDef2VPValue.count(cast<BranchInst>(TI)->getCondition()) && in buildPlainCFG()
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZLongBranch.cpp357 SmallVector<TerminatorInfo, 16>::iterator TI = Terminators.begin(); in setWorstCaseAddresses() local
362 skipTerminator(Position, *TI, true); in setWorstCaseAddresses()
363 ++TI; in setWorstCaseAddresses()
458 SmallVector<TerminatorInfo, 16>::iterator TI = Terminators.begin(); in relaxBranches() local
463 assert(Position.Address <= TI->Address && in relaxBranches()
465 if (mustRelaxBranch(*TI, Position.Address)) in relaxBranches()
466 relaxBranch(*TI); in relaxBranches()
467 skipTerminator(Position, *TI, false); in relaxBranches()
468 ++TI; in relaxBranches()
/llvm-project-15.0.7/llvm/tools/llvm-pdbutil/
H A DTypeReferenceTracker.h36 bool isTypeReferenced(codeview::TypeIndex TI) { in isTypeReferenced() argument
37 return TI.toArrayIndex() <= NumTypeRecords && in isTypeReferenced()
38 TypeReferenced.test(TI.toArrayIndex()); in isTypeReferenced()
/llvm-project-15.0.7/llvm/include/llvm/Transforms/Utils/
H A DBasicBlockUtils.h211 BasicBlock *SplitCriticalEdge(Instruction *TI, unsigned SuccNum,
218 BasicBlock *SplitKnownCriticalEdge(Instruction *TI, unsigned SuccNum,
230 Instruction *TI = Src->getTerminator(); variable
233 assert(i != TI->getNumSuccessors() && "Edge doesn't exist!");
234 if (TI->getSuccessor(i) == Dst)
235 return SplitCriticalEdge(TI, i, Options);
254 void setUnwindEdgeTo(Instruction *TI, BasicBlock *Succ);
/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/PDB/Native/
H A DNativeTypePointer.h26 codeview::TypeIndex TI);
30 codeview::TypeIndex TI, codeview::PointerRecord PR);
54 codeview::TypeIndex TI; variable
/llvm-project-15.0.7/llvm/utils/TableGen/
H A DDFAEmitter.cpp61 DfaTransitionInfo TI; in visitDfaState() local
71 TI.emplace_back(FromState, ToState); in visitDfaState()
80 sort(TI); in visitDfaState()
81 TI.erase(std::unique(TI.begin(), TI.end()), TI.end()); in visitDfaState()
83 DfaTransitions.emplace(std::make_pair(FromId, A), std::make_pair(ToId, TI)); in visitDfaState()

12345678910