We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de2bac3 commit 3fbb553Copy full SHA for 3fbb553
mlir/lib/Dialect/EmitC/IR/EmitC.cpp
@@ -114,11 +114,8 @@ bool mlir::emitc::isIntegerIndexOrOpaqueType(Type type) {
114
bool mlir::emitc::isSupportedFloatType(Type type) {
115
if (auto floatType = llvm::dyn_cast<FloatType>(type)) {
116
switch (floatType.getWidth()) {
117
- case 16: {
118
- if (llvm::isa<Float16Type, BFloat16Type>(type))
119
- return true;
120
- return false;
121
- }
+ case 16:
+ return llvm::isa<Float16Type, BFloat16Type>(type);
122
case 32:
123
case 64:
124
return true;
0 commit comments