Create a constant integer operation and return its MLIR result Value. Takes as input the concrete integer value. Can specify the integer bit width.
(self, value, width=64)
| 338 | return IntegerType.get_signless(width) |
| 339 | |
| 340 | def getConstantInt(self, value, width=64): |
| 341 | """ |
| 342 | Create a constant integer operation and return its MLIR result Value. |
| 343 | Takes as input the concrete integer value. Can specify the integer bit |
| 344 | width. |
| 345 | """ |
| 346 | ty = self.getIntegerType(width) |
| 347 | return arith.ConstantOp(ty, self.getIntegerAttr(ty, value)).result |
| 348 | |
| 349 | def getFloatType(self, width=64): |
| 350 | """ |
no test coverage detected