File tree 1 file changed +4
-3
lines changed
lib/bef_converter/mlir_to_bef
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 16
16
17
17
#include " bef_location_emitter.h"
18
18
19
+ #include " llvm/Support/Casting.h"
19
20
#include " mlir/IR/Location.h"
20
21
#include " mlir/IR/Operation.h"
21
22
#include " mlir/IR/OperationSupport.h"
24
25
namespace tfrt {
25
26
26
27
bool BefLocationEmitter::IsSupportedLocation (const mlir::Location& loc) {
27
- if (loc. isa <mlir::UnknownLoc>()) return true ;
28
- if (loc. isa <mlir::NameLoc>()) return true ;
29
- if (loc. isa <mlir::FileLineColLoc>()) return true ;
28
+ if (llvm:: isa<mlir::UnknownLoc>(loc )) return true ;
29
+ if (llvm:: isa<mlir::NameLoc>(loc )) return true ;
30
+ if (llvm:: isa<mlir::FileLineColLoc>(loc )) return true ;
30
31
if (auto callsite_loc = loc.dyn_cast <mlir::CallSiteLoc>()) {
31
32
return IsSupportedLocation (callsite_loc.getCallee ()) &&
32
33
IsSupportedLocation (callsite_loc.getCaller ());
You can’t perform that action at this time.
0 commit comments