Home
last modified time | relevance | path

Searched refs:Loc2 (Results 1 – 21 of 21) sorted by relevance

/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DRecordOps.cpp89 const RecordStorageLocation &Loc2, const Environment &Env2) { in recordsEqual() argument
91 if (Loc2.getType().getCanonicalType().getUnqualifiedType() != in recordsEqual()
94 llvm::dbgs() << "Loc2 type " << Loc2.getType() << "\n"; in recordsEqual()
97 assert(Loc2.getType().getCanonicalType().getUnqualifiedType() == in recordsEqual()
101 StorageLocation *FieldLoc2 = Loc2.getChild(*Field); in recordsEqual()
122 cast<RecordStorageLocation>(Loc2.getSyntheticField(Name)), Env2)) in recordsEqual()
125 Env2.getValue(Loc2.getSyntheticField(Name))) { in recordsEqual()
/llvm-project/clang/include/clang/Analysis/FlowSensitive/
H A DRecordOps.h61 const RecordStorageLocation &Loc2, const Environment &Env2);
64 const RecordStorageLocation &Loc2, in recordsEqual() argument
66 return recordsEqual(Loc1, Env, Loc2, Env); in recordsEqual()
/llvm-project/llvm/lib/CodeGen/
H A DCallingConvLower.cpp276 auto AreCompatible = [](const CCValAssign &Loc1, const CCValAssign &Loc2) { in resultsCompatible() argument
277 assert(!Loc1.isPendingLoc() && !Loc2.isPendingLoc() && in resultsCompatible()
280 if (Loc1.getLocInfo() != Loc2.getLocInfo()) in resultsCompatible()
283 if (Loc1.isRegLoc() && Loc2.isRegLoc()) in resultsCompatible()
284 return Loc1.getLocReg() == Loc2.getLocReg(); in resultsCompatible()
285 if (Loc1.isMemLoc() && Loc2.isMemLoc()) in resultsCompatible()
286 return Loc1.getLocMemOffset() == Loc2.getLocMemOffset(); in resultsCompatible()
/llvm-project/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp61 bool areOnSameLine(SourceLocation Loc1, SourceLocation Loc2, in areOnSameLine() argument
63 return !Loc1.isMacroID() && !Loc2.isMacroID() && in areOnSameLine()
64 SM.getSpellingLineNumber(Loc1) == SM.getSpellingLineNumber(Loc2); in areOnSameLine()
/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXAliasAnalysis.cpp94 const MemoryLocation &Loc2, AAQueryInfo &AAQI, in getModRefInfoMask()
97 unsigned AS2 = getAddressSpace(Loc2.Ptr, TraverseAddressSpacesLimit); in getModRefInfoMask()
71 alias(const MemoryLocation & Loc1,const MemoryLocation & Loc2,AAQueryInfo & AAQI,const Instruction *) alias() argument
/llvm-project/clang-tools-extra/clang-tidy/readability/
H A DNamespaceCommentCheck.cpp43 SourceLocation Loc1, SourceLocation Loc2) { in locationsInSameFile() argument
44 return Loc1.isFileID() && Loc2.isFileID() && in locationsInSameFile()
45 Sources.getFileID(Loc1) == Sources.getFileID(Loc2); in locationsInSameFile()
/llvm-project/llvm/unittests/Analysis/
H A DAliasAnalysisTest.cpp325 const auto Loc2 = MemoryLocation::get(getInstructionByName(*F, "L2")); in TEST_F() local
329 const auto AR = AA.alias(Loc1, Loc2); in TEST_F()
355 const auto Loc2 = MemoryLocation::get(getInstructionByName(*F, "L2")); in TEST_F() local
359 auto AR = AA.alias(Loc1, Loc2); in TEST_F()
363 AR = AA.alias(Loc2, Loc1); in TEST_F()
/llvm-project/clang-tools-extra/clang-tidy/modernize/
H A DConcatNestedNamespacesCheck.cpp21 SourceLocation Loc1, SourceLocation Loc2) { in locationsInSameFile() argument
22 return Loc1.isFileID() && Loc2.isFileID() && in locationsInSameFile()
23 Sources.getFileID(Loc1) == Sources.getFileID(Loc2); in locationsInSameFile()
/llvm-project/llvm/lib/Analysis/
H A DAliasAnalysisEvaluator.cpp37 std::pair<const Value *, Type *> Loc2, in PrintResults() argument
40 Type *Ty1 = Loc1.second, *Ty2 = Loc2.second; in PrintResults()
42 unsigned AS2 = Loc2.first->getType()->getPointerAddressSpace(); in PrintResults()
47 Loc2.first->printAsOperand(os2, false, M); in PrintResults()
H A DLoopCacheAnalysis.cpp553 const auto &Loc2 = MemoryLocation::get(&Other.StoreOrLoadInst);
554 return AA.isMustAlias(Loc1, Loc2); in operator <<()
547 const auto &Loc2 = MemoryLocation::get(&Other.StoreOrLoadInst); isAliased() local
/llvm-project/clang/lib/Analysis/FlowSensitive/Models/
H A DUncheckedOptionalAccessModel.cpp737 void transferSwap(RecordStorageLocation *Loc1, RecordStorageLocation *Loc2, in buildTransferMatchSwitch()
744 if (Loc2 != nullptr) in buildTransferMatchSwitch()
745 setHasValue(*Loc2, Env.makeAtomicBoolValue(), Env); in buildTransferMatchSwitch()
748 if (Loc2 == nullptr) { in buildTransferMatchSwitch()
763 BoolValue *BoolVal2 = getHasValue(Env, Loc2); in buildTransferMatchSwitch()
768 setHasValue(*Loc2, *BoolVal1, Env); in buildTransferMatchSwitch()
567 transferSwap(RecordStorageLocation * Loc1,RecordStorageLocation * Loc2,Environment & Env) transferSwap() argument
/llvm-project/clang/unittests/Analysis/FlowSensitive/
H A DDataflowEnvironmentTest.cpp183 StorageLocation &Loc2 = Env2.createStorageLocation(Context.IntTy); in TEST_F()
184 Env2.setStorageLocation(*Ref, Loc2); in TEST_F()
186 EXPECT_NE(&Loc1, &Loc2); in TEST_F()
182 StorageLocation &Loc2 = Env2.createStorageLocation(Context.IntTy); TEST_F() local
/llvm-project/clang/include/clang/Analysis/Analyses/
H A DThreadSafety.h171 /// \param Loc2 -- The location of the second lock expression.
174 SourceLocation Loc2) {} in handleExclusiveAndShared() argument
/llvm-project/clang/lib/AST/
H A DRawCommentList.cpp225 SourceLocation Loc1, SourceLocation Loc2,
228 std::pair<FileID, unsigned> Loc2Info = SM.getDecomposedLoc(Loc2); in onlyWhitespaceBetween()
240 assert(Loc1Info.second <= Loc2Info.second && "Loc1 after Loc2!"); in onlyWhitespaceBetween()
227 onlyWhitespaceBetween(SourceManager & SM,SourceLocation Loc1,SourceLocation Loc2,unsigned MaxNewlinesAllowed) onlyWhitespaceBetween() argument
/llvm-project/clang/include/clang/Sema/
H A DInitialization.h632 SourceLocation Loc2, SourceLocation Loc3) in InitializationKind() argument
635 Locations[1] = Loc2; in InitializationKind()
/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCallLowering.cpp1221 const CCValAssign &Loc2 = ArgLocs2[i]; in resultsCompatible()
1225 if (Loc1.isRegLoc() != Loc2.isRegLoc()) in resultsCompatible()
1230 if (Loc1.getLocReg() != Loc2.getLocReg()) in resultsCompatible()
1238 if (Loc1.getLocMemOffset() != Loc2.getLocMemOffset()) in getStackValueStoreType()
1214 const CCValAssign &Loc2 = ArgLocs2[i]; resultsCompatible() local
/llvm-project/clang/include/clang/Basic/
H A DSourceManager.h1493 bool isWrittenInSameFile(SourceLocation Loc1, SourceLocation Loc2) const { in isWrittenInSameFile() argument
1494 return getFileID(Loc1) == getFileID(Loc2); in isWrittenInSameFile()
/llvm-project/clang/lib/Sema/
H A DAnalysisBasedWarnings.cpp1975 SourceLocation Loc2) override { in handleMutexNotHeld()
1979 PartialDiagnosticAt Note(Loc2, S.PDiag(diag::note_lock_exclusive_and_shared) in handleMutexNotHeld()
1943 handleExclusiveAndShared(StringRef Kind,Name LockName,SourceLocation Loc1,SourceLocation Loc2) handleExclusiveAndShared() argument
/llvm-project/clang/unittests/AST/
H A DASTImporterTest.cpp1928 static void CompareSourceLocs(FullSourceLoc Loc1, FullSourceLoc Loc2) { in TEST_P()
1929 EXPECT_EQ(Loc1.getExpansionLineNumber(), Loc2.getExpansionLineNumber()); in TEST_P()
1930 EXPECT_EQ(Loc1.getExpansionColumnNumber(), Loc2.getExpansionColumnNumber()); in TEST_P()
1931 EXPECT_EQ(Loc1.getSpellingLineNumber(), Loc2.getSpellingLineNumber());
1932 EXPECT_EQ(Loc1.getSpellingColumnNumber(), Loc2.getSpellingColumnNumber()); in CompareSourceLocs() argument
/llvm-project/llvm/unittests/Frontend/
H A DOpenMPIRBuilderTest.cpp7428 OpenMPIRBuilder::LocationDescription Loc2(Builder.saveIP(), DL);
7430 OMPBuilder.createTask(Loc2, AllocaIP, TaskBodyGenCB2));
6832 OpenMPIRBuilder::LocationDescription Loc2(Builder.saveIP(), DL); TEST_F() local
/llvm-project/llvm/lib/AsmParser/
H A DLLParser.cpp7246 LocTy Loc, Loc2; in resolveFunctionType()
7263 parseTypeAndBasicBlock(Op2, Loc2, PFS)) in parseInvoke()
7127 LocTy Loc, Loc2; parseBr() local