Lines Matching refs:Loc
20 bool CodeRegion::isLocInRange(llvm::SMLoc Loc) const { in isLocInRange()
21 if (RangeEnd.isValid() && Loc.getPointer() > RangeEnd.getPointer()) in isLocInRange()
23 if (RangeStart.isValid() && Loc.getPointer() < RangeStart.getPointer()) in isLocInRange()
28 void CodeRegions::beginRegion(llvm::StringRef Description, llvm::SMLoc Loc) { in beginRegion() argument
32 SM.PrintMessage(Loc, llvm::SourceMgr::DK_Warning, in beginRegion()
40 addRegion(Description, Loc); in beginRegion()
43 void CodeRegions::endRegion(llvm::SMLoc Loc) { in endRegion() argument
47 SM.PrintMessage(Loc, llvm::SourceMgr::DK_Warning, in endRegion()
52 CurrentRegion.setEndLocation(Loc); in endRegion()
56 const llvm::SMLoc &Loc = Instruction.getLoc(); in addInstruction() local
59 [Loc](const std::unique_ptr<CodeRegion> &Region) { in addInstruction()
60 return Region->isLocInRange(Loc); in addInstruction()