16 return 1uLL <<
static_cast<std::size_t
>(S);
20 return static_cast<std::size_t
>(S);
26 return "BufferExtents";
30 return "WallClockTime";
61Error BlockVerifier::transition(State To) {
112 std::make_error_code(std::errc::executable_format_error),
113 "BUG (BlockVerifier): Cannot find transition table entry for %s, "
114 "transitioning to %s.",
115 recordToString(CurrentRecord).data(), recordToString(To).data());
122 auto &Mapping = TransitionTable[number(CurrentRecord)];
123 auto &Destinations = Mapping.ToStates;
124 assert(Mapping.From == CurrentRecord &&
125 "BUG: Wrong index for record mapping.");
126 if ((Destinations & ToSet(
mask(To))) == 0)
128 std::make_error_code(std::errc::executable_format_error),
129 "BlockVerifier: Invalid transition from %s to %s.",
130 recordToString(CurrentRecord).data(), recordToString(To).data());
184 switch (CurrentRecord) {
195 std::make_error_code(std::errc::executable_format_error),
196 "BlockVerifier: Invalid terminal condition %s, malformed block.",
197 recordToString(CurrentRecord).data());
std::bitset< number(BlockVerifier::State::StateMax)> ToStates
BlockVerifier::State From
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
Lightweight error class with error context and mandatory checking.
static ErrorSuccess success()
Create a success value.
Error visit(BufferExtents &) override
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
This is an optimization pass for GlobalISel generic memory operations.
Error createStringError(std::error_code EC, char const *Fmt, const Ts &... Vals)
Create formatted StringError object.
auto mask(ShuffFunc S, unsigned Length, OptArgs... args) -> MaskT