Lines Matching refs:Loc

19 bool CodeRegion::isLocInRange(SMLoc Loc) const {  in isLocInRange()
20 if (RangeEnd.isValid() && Loc.getPointer() > RangeEnd.getPointer()) in isLocInRange()
22 if (RangeStart.isValid() && Loc.getPointer() < RangeStart.getPointer()) in isLocInRange()
28 SMLoc Loc = Instruction.getLoc(); in addInstruction() local
30 if (Region->isLocInRange(Loc)) in addInstruction()
39 void AnalysisRegions::beginRegion(StringRef Description, SMLoc Loc) { in beginRegion() argument
46 Regions[0] = std::make_unique<CodeRegion>(Description, Loc); in beginRegion()
54 SM.PrintMessage(Loc, llvm::SourceMgr::DK_Error, in beginRegion()
62 SM.PrintMessage(Loc, llvm::SourceMgr::DK_Error, in beginRegion()
72 Regions.emplace_back(std::make_unique<CodeRegion>(Description, Loc)); in beginRegion()
75 void AnalysisRegions::endRegion(StringRef Description, SMLoc Loc) { in endRegion() argument
83 Regions[It->second]->setEndLocation(Loc); in endRegion()
91 Regions[0]->setEndLocation(Loc); in endRegion()
98 Regions[It->second]->setEndLocation(Loc); in endRegion()
104 SM.PrintMessage(Loc, llvm::SourceMgr::DK_Error, in endRegion()
107 SM.PrintMessage(Loc, llvm::SourceMgr::DK_Note, in endRegion()
110 SM.PrintMessage(Loc, llvm::SourceMgr::DK_Note, in endRegion()
117 void InstrumentRegions::beginRegion(StringRef Description, SMLoc Loc, in beginRegion() argument
120 SM.PrintMessage(Loc, llvm::SourceMgr::DK_Error, in beginRegion()
130 Loc, llvm::SourceMgr::DK_Error, in beginRegion()
141 std::make_unique<InstrumentRegion>(Description, Loc, std::move(I))); in beginRegion()
144 void InstrumentRegions::endRegion(StringRef Description, SMLoc Loc) { in endRegion() argument
147 Regions[It->second]->setEndLocation(Loc); in endRegion()
153 SM.PrintMessage(Loc, llvm::SourceMgr::DK_Error, in endRegion()
156 SM.PrintMessage(Loc, llvm::SourceMgr::DK_Note, in endRegion()
163 InstrumentRegions::getActiveInstruments(SMLoc Loc) const { in getActiveInstruments()
166 if (R->isLocInRange(Loc)) { in getActiveInstruments()