File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
mlir/lib/Dialect/EmitC/IR Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 17
17
#include " llvm/ADT/STLExtras.h"
18
18
#include " llvm/ADT/TypeSwitch.h"
19
19
#include " llvm/Support/Casting.h"
20
+ #include " llvm/Support/Compiler.h"
20
21
21
22
using namespace mlir ;
22
23
using namespace mlir ::emitc;
@@ -114,11 +115,10 @@ bool mlir::emitc::isIntegerIndexOrOpaqueType(Type type) {
114
115
bool mlir::emitc::isSupportedFloatType (Type type) {
115
116
if (auto floatType = llvm::dyn_cast<FloatType>(type)) {
116
117
switch (floatType.getWidth ()) {
117
- case 16 : {
118
- if (llvm::isa<Float16Type, BFloat16Type>(type))
119
- return true ;
120
- return false ;
121
- }
118
+ case 16 :
119
+ if (!llvm::isa<Float16Type, BFloat16Type>(type))
120
+ return false ;
121
+ LLVM_FALLTHROUGH;
122
122
case 32 :
123
123
case 64 :
124
124
return true ;
You can’t perform that action at this time.
0 commit comments