This patch adds llvm.freeze & processes undef constants from LLVM IR.
syntax:
LLVM IR
<result> = freeze ty <val>
MLIR LLVM Dialect
llvm.freeze val attr-dict : type
Example:
LLVM IR: %3 = freeze i32 5
MLIR: %6 = llvm.freeze %5 : !llvm.i32
Differential D75329
[MLIR] Added llvm.freeze Sagar on Feb 27 2020, 10:51 PM. Authored by
Details
This patch adds llvm.freeze & processes undef constants from LLVM IR. syntax: MLIR LLVM Dialect Example:
Diff Detail
Unit Tests Event TimelineComment Actions Can you document the semantics somewhere? (I have no idea if other patches have done anything like this, but it does seem like something that should be documented somewhere). Comment Actions Looks good, I mostly have nits. In general, we should just refer to the relevant piece of LLVM's LangRef unless MLIR modeling has different semantics than LLVM IR (which we should avoid as much as possible).
This comment was removed by Sagar. Comment Actions I do not have write access to the repository. If would be great if someone could commit for me. Comment Actions This is my Github account, https://github.com/Sagox |
clang-format: please reformat the code