MCPcopy Create free account
hub / github.com/NVIDIA/cuda-quantum / getIntegerAttr

Method getIntegerAttr

python/cudaq/kernel/ast_bridge.py:509–511  ·  view source on GitHub ↗

Return an MLIR Integer Attribute of the given `IntegerType`.

(self, type, value)

Source from the content-addressed store, hash-verified

507 return IntegerType.get_signless(width)
508
509 def getIntegerAttr(self, type, value):
510 """Return an MLIR Integer Attribute of the given `IntegerType`."""
511 return IntegerAttr.get(type, value)
512
513 def getFloatType(self, width=64):
514 """Return an MLIR float type (single or double precision)."""

Callers 6

getConstantIntMethod · 0.95
compare_equalityMethod · 0.95
visit_CompareMethod · 0.95
createIntConstantMethod · 0.45
parseMethod · 0.45
matchAndRewriteMethod · 0.45

Calls 1

getMethod · 0.45

Tested by 1

createIntConstantMethod · 0.36