Changeset View
Changeset View
Standalone View
Standalone View
mlir/include/mlir/Dialect/SPIRV/IR/SPIRVStructureOps.td
Show All 17 Lines | |||||
include "mlir/Dialect/SPIRV/IR/SPIRVBase.td" | include "mlir/Dialect/SPIRV/IR/SPIRVBase.td" | ||||
include "mlir/IR/OpAsmInterface.td" | include "mlir/IR/OpAsmInterface.td" | ||||
include "mlir/IR/SymbolInterfaces.td" | include "mlir/IR/SymbolInterfaces.td" | ||||
include "mlir/Interfaces/CallInterfaces.td" | include "mlir/Interfaces/CallInterfaces.td" | ||||
include "mlir/Interfaces/SideEffectInterfaces.td" | include "mlir/Interfaces/SideEffectInterfaces.td" | ||||
// ----- | // ----- | ||||
def SPV_AddressOfOp : SPV_Op<"mlir.addressof", [InFunctionScope, NoSideEffect]> { | def SPV_AddressOfOp : SPV_Op<"mlir.addressof", | ||||
[DeclareOpInterfaceMethods<OpAsmOpInterface>, InFunctionScope, NoSideEffect]> { | |||||
let summary = "Get the address of a global variable."; | let summary = "Get the address of a global variable."; | ||||
let description = [{ | let description = [{ | ||||
Variables in module scope are defined using symbol names. This op generates | Variables in module scope are defined using symbol names. This op generates | ||||
an SSA value that can be used to refer to the symbol within function scope | an SSA value that can be used to refer to the symbol within function scope | ||||
for use in ops that expect an SSA value. This operation has no corresponding | for use in ops that expect an SSA value. This operation has no corresponding | ||||
SPIR-V instruction; it's merely used for modelling purpose in the SPIR-V | SPIR-V instruction; it's merely used for modelling purpose in the SPIR-V | ||||
dialect. Since variables in module scope in SPIR-V dialect are of pointer | dialect. Since variables in module scope in SPIR-V dialect are of pointer | ||||
▲ Show 20 Lines • Show All 762 Lines • Show Last 20 Lines |