mirror of
https://github.com/ROCm/ROCm.git
synced 2026-04-05 03:01:17 -04:00
[Triton-MLIR][BACKEND] Support bfloat16 and clean up some test code (#998)
This commit is contained in:
@@ -134,6 +134,13 @@ bool supportMMA(Value value, int version) {
|
||||
(elemTy.isInteger(8) && version >= 2);
|
||||
}
|
||||
|
||||
Type getElementType(Value value) {
|
||||
auto type = value.getType();
|
||||
if (auto tensorType = type.dyn_cast<RankedTensorType>())
|
||||
return tensorType.getElementType();
|
||||
return type;
|
||||
}
|
||||
|
||||
std::string getValueOperandName(Value value, AsmState &state) {
|
||||
std::string opName;
|
||||
llvm::raw_string_ostream ss(opName);
|
||||
|
||||
Reference in New Issue
Block a user