26 Str.split(Counts,
',');
27 assert(Counts.
size() == 3 &&
"expected three thread dimensions");
29 [[maybe_unused]]
bool IsInvalid;
30 IsInvalid = Counts[0].getAsInteger(10, Count1);
31 assert(!IsInvalid &&
"expected an integer thread count");
32 IsInvalid = Counts[1].getAsInteger(10, Count2);
33 assert(!IsInvalid &&
"expected an integer thread count");
34 IsInvalid = Counts[2].getAsInteger(10, Count3);
35 assert(!IsInvalid &&
"expected an integer thread count");
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
This file defines the SmallVector class.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
Represent a constant reference to a string, i.e.
LLVM_ABI void parseThreadCounts(StringRef Str, unsigned &Count1, unsigned &Count2, unsigned &Count3)
This is an optimization pass for GlobalISel generic memory operations.