Create a constant float operation and return its MLIR result Value. Takes as input the concrete float value.
(self, value, width=64)
| 529 | return FloatAttr.get(type, value) |
| 530 | |
| 531 | def getConstantFloat(self, value, width=64): |
| 532 | """Create a constant float operation and return its MLIR result Value. |
| 533 | |
| 534 | Takes as input the concrete float value. |
| 535 | """ |
| 536 | ty = self.getFloatType(width=width) |
| 537 | return self.getConstantFloatWithType(value, ty) |
| 538 | |
| 539 | def getConstantFloatWithType(self, value, ty): |
| 540 | """Create a constant float operation and return its MLIR result Value. |
no test coverage detected