‘pyHIR’ Interfaces#
Op Interfaces#
CallInterface (PylirHIR_CallInterface
)
Methods:
getKindInternal
::llvm::ArrayRef<int32_t> getKindInternal();
getKeywords
::mlir::ArrayAttr getKeywords();
FunctionInterface (PylirHIR_FunctionInterface
)
Methods:
getFunctionType
::mlir::Type getFunctionType();
Returns the type of the function.
getDefaultValues
::mlir::ValueRange getDefaultValues();
Returns the values used as default values for the parameters.
See getDefaultValuesMapping
to get a mapping of which default value
corresponds to which parameter.
getDefaultValuesMapping
::llvm::ArrayRef<std::int32_t> getDefaultValuesMapping();
Returns the mapping for getDefaultValues
.
Every nth slot contains the index of the parameter that the nth default
value applies to.
getParameterNames
::mlir::ArrayAttr getParameterNames();
Returns the parameter names used for the named argument syntax.
See getParameterNames
to get a mapping of which parameter name
corresponds to which parameter.
getParameterNameMapping
::llvm::ArrayRef<std::int32_t> getParameterNameMapping();
Returns the mapping for getParameterNames
.
Every nth slot contains the index of the parameter that the nth parameter
name applies to.
getKeywordOnlyMapping
::llvm::ArrayRef<std::int32_t> getKeywordOnlyMapping();
Returns a sorted range of indices of all parameters which may only be called by keyword.
getPosRest
std::optional<std::uint32_t> getPosRest();
Returns the index of the parameter which receives any leftover positional arguments or an empty optional if no such parameter exists.
getKeywordRest
std::optional<std::uint32_t> getKeywordRest();
Returns the index of the parameter which receives any leftover keyword arguments or an empty optional if no such parameter exists.
BinOpInterface (anonymous_479
)
Methods:
getBinaryOperation
pylir::HIR::BinaryOperation getBinaryOperation();
getBinaryOperationAttr
pylir::HIR::BinaryOperationAttr getBinaryOperationAttr();
getBinaryOperationAttrName
mlir::StringAttr getBinaryOperationAttrName();
getLhs
mlir::Value getLhs();
getRhs
mlir::Value getRhs();
getResult
mlir::Value getResult();
getType
mlir::Type getType();
BinAssignOpInterface (anonymous_523
)
Methods:
getBinaryAssignment
pylir::HIR::BinaryAssignment getBinaryAssignment();
getBinaryAssignmentAttr
pylir::HIR::BinaryAssignmentAttr getBinaryAssignmentAttr();
getBinaryAssignmentAttrName
mlir::StringAttr getBinaryAssignmentAttrName();
getLhs
mlir::Value getLhs();
getRhs
mlir::Value getRhs();
getResult
mlir::Value getResult();
getType
mlir::Type getType();
ContainsOpInterface (anonymous_542
)
Methods:
getContainer
mlir::Value getContainer();
getItem
mlir::Value getItem();
getResult
mlir::Value getResult();
getType
mlir::Type getType();
GetItemOpInterface (anonymous_562
)
Methods:
getObject
mlir::Value getObject();
getIndex
mlir::Value getIndex();
getResult
mlir::Value getResult();
getType
mlir::Type getType();
SetItemOpInterface (anonymous_582
)
Methods:
getObject
mlir::Value getObject();
getIndex
mlir::Value getIndex();
getValue
mlir::Value getValue();
getResult
mlir::Value getResult();
getType
mlir::Type getType();
DelItemOpInterface (anonymous_597
)
Methods:
getObject
mlir::Value getObject();
getIndex
mlir::Value getIndex();
getResult
mlir::Value getResult();
getType
mlir::Type getType();
GetAttributeOpInterface (anonymous_606
)
Methods:
getObject
mlir::Value getObject();
getAttribute
::llvm::StringRef getAttribute();
getAttributeAttr
::mlir::StringAttr getAttributeAttr();
getAttributeAttrName
mlir::StringAttr getAttributeAttrName();
getResult
mlir::Value getResult();
getType
mlir::Type getType();
SetAttrOpInterface (anonymous_625
)
Methods:
getObject
mlir::Value getObject();
getAttribute
::llvm::StringRef getAttribute();
getAttributeAttr
::mlir::StringAttr getAttributeAttr();
getAttributeAttrName
mlir::StringAttr getAttributeAttrName();
getValue
mlir::Value getValue();
getResult
mlir::Value getResult();
getType
mlir::Type getType();
CallOpInterface (anonymous_642
)
Methods:
getCallable
mlir::Value getCallable();
getArguments
mlir::OperandRange getArguments();
getKeywordsAttr
::mlir::ArrayAttr getKeywordsAttr();
getKeywordsAttrName
mlir::StringAttr getKeywordsAttrName();
getKindInternalAttr
::mlir::DenseI32ArrayAttr getKindInternalAttr();
getKindInternalAttrName
mlir::StringAttr getKindInternalAttrName();
getResult
mlir::Value getResult();
getType
mlir::Type getType();
ClassOpInterface (anonymous_701
)
Methods:
getName
::llvm::StringRef getName();
getNameAttr
::mlir::StringAttr getNameAttr();
getNameAttrName
mlir::StringAttr getNameAttrName();
getArguments
mlir::OperandRange getArguments();
getKeywordsAttr
::mlir::ArrayAttr getKeywordsAttr();
getKeywordsAttrName
mlir::StringAttr getKeywordsAttrName();
getKindInternalAttr
::mlir::DenseI32ArrayAttr getKindInternalAttr();
getKindInternalAttrName
mlir::StringAttr getKindInternalAttrName();
getResult
mlir::Value getResult();
getBody
mlir::Region&getBody();
getType
mlir::Type getType();
BuildClassOpInterface (anonymous_726
)
Methods:
getFunction
mlir::Value getFunction();
getName
::llvm::StringRef getName();
getNameAttr
::mlir::StringAttr getNameAttr();
getNameAttrName
mlir::StringAttr getNameAttrName();
getArguments
mlir::OperandRange getArguments();
getKeywordsAttr
::mlir::ArrayAttr getKeywordsAttr();
getKeywordsAttrName
mlir::StringAttr getKeywordsAttrName();
getKindInternalAttr
::mlir::DenseI32ArrayAttr getKindInternalAttr();
getKindInternalAttrName
mlir::StringAttr getKindInternalAttrName();
getResult
mlir::Value getResult();
getType
mlir::Type getType();
InitModuleOpInterface (anonymous_744
)
Methods:
getModule
::llvm::StringRef getModule();
getModuleAttr
::mlir::FlatSymbolRefAttr getModuleAttr();
getModuleAttrName
mlir::StringAttr getModuleAttrName();