Lines Matching defs:CodeRegion
1 //===-------------------------- CodeRegion.h -------------------*- C++ -* -===//
11 /// This file implements class CodeRegion and CodeRegions.
13 /// A CodeRegion describes a region of assembly code guarded by special LLVM-MCA
48 class CodeRegion {
57 CodeRegion(const CodeRegion &) = delete;
58 CodeRegion &operator=(const CodeRegion &) = delete;
61 CodeRegion(llvm::StringRef Desc, llvm::SMLoc Start)
87 std::vector<std::unique_ptr<CodeRegion>> Regions;
91 Regions.emplace_back(llvm::make_unique<CodeRegion>(Description, Loc));
98 typedef std::vector<std::unique_ptr<CodeRegion>>::iterator iterator;
99 typedef std::vector<std::unique_ptr<CodeRegion>>::const_iterator
123 [](const std::unique_ptr<CodeRegion> &Region) {