Cast from a value interpreted as floating-point to the corresponding signed
integer value. Similar to an element-wise static_cast in C++, performs an
element-wise conversion operation.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/include/mlir/Dialect/StandardOps/IR/Ops.td | ||
---|---|---|
1485 | This is a little light on semantics, i.e., what is the rounding mode? towards zero? Can you beef this up? I would expect it to at least cover the same beats as the llvm equivalent: |
mlir/include/mlir/Dialect/StandardOps/IR/Ops.td | ||
---|---|---|
1485 | I was referring it in the later sentence, but it would be great to point it out directly. Fixed. |
Comment Actions
I think River's concerns were addressed. He is OOO for the next week; let's land this and we can always fix afterwards if he has more concerns.
Comment Actions
Sounds good to me. @rriddle Feel free to ping me or leave comments here if there are other concerns. I'm happy to address them.
This is a little light on semantics, i.e., what is the rounding mode? towards zero? Can you beef this up? I would expect it to at least cover the same beats as the llvm equivalent:
https://llvm.org/docs/LangRef.html#fptosi-to-instruction