Create a constant float operation and return its MLIR result Value. Takes as input the concrete float value.
(self, value, width=64)
| 362 | return FloatAttr.get(type, value) |
| 363 | |
| 364 | def getConstantFloat(self, value, width=64): |
| 365 | """ |
| 366 | Create a constant float operation and return its MLIR result Value. |
| 367 | Takes as input the concrete float value. |
| 368 | """ |
| 369 | ty = self.getFloatType(width=width) |
| 370 | return self.getConstantFloatWithType(value, ty) |
| 371 | |
| 372 | def getConstantFloatWithType(self, value, ty): |
| 373 | """ |
no test coverage detected