Fix the location issue on SLIR
This commit is contained in:
parent
e69ee4dc8f
commit
664772f456
|
@ -109,6 +109,8 @@ def ReturnOp: Serene_Op<"return", [NoSideEffect, HasParent<"FnOp">,
|
|||
}];
|
||||
|
||||
let arguments = (ins AnyType:$operand);
|
||||
let assemblyFormat =
|
||||
[{ attr-dict $operand `:` type($operand) }];
|
||||
|
||||
// let verifier = [{ return serene::sir::verify(*this); }];
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
#include "serene/namespace.h"
|
||||
|
||||
#include "mlir/IR/OperationSupport.h"
|
||||
#include "serene/context.h"
|
||||
#include "serene/errors/constants.h"
|
||||
#include "serene/exprs/expression.h"
|
||||
|
@ -110,6 +111,10 @@ void Namespace::dump() {
|
|||
return;
|
||||
}
|
||||
|
||||
// mlir::OpPrintingFlags flags;
|
||||
// flags.enableDebugInfo();
|
||||
|
||||
// maybeModuleOp.getValue()->print(llvm::outs(), flags);
|
||||
maybeModuleOp.getValue()->dump();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue