9 #include <spirv/unified1/spirv.h>
32 for (
auto V : Stage.
getModule()->getVariables())
34 const Type *Ty = V->getType();
This file declares the Workgroup class.
size_t getSize() const
Returns the size of this type in bytes.
This file declares the Module class.
const Type * getElementType(uint64_t Index=0) const
Returns the type of the element at Index.
std::shared_ptr< const Module > getModule() const
Return the module this pipeline stage is using.
Dim3 GroupId
The group ID.
void addWorkItem(std::unique_ptr< Invocation > WorkItem)
Add a work-item invocation to this group, transferring ownership.
const PipelineStage & getCurrentStage() const
Returns the pipeline stage that is currently being executed.
WorkItemList WorkItems
List of work items in this workgroup.
VariableList Variables
Workgroup scope OpVariable allocations.
This file declares the Type class.
Class representing a 3-dimensional size or ID.
This file declares the PipelineExecutor class.
Workgroup(Device &Dev, const PipelineExecutor &Executor, Dim3 GroupId)
Create a workgroup.
This class represents an address space in the virtual device.
This file declares the PipelineStage class.
An internal class that handles pipeline execution, including the interactive debugger.
uint32_t getStorageClass() const
Returns the storage class of this type.
A Device instance encapsulates properties and state for the virtual device.
This class encapsulates information about a pipeline stage.
This file declares the Memory class.
Memory * LocalMemory
The local memory of this workgroup.
~Workgroup()
Destroy this workgroup.
This class represents a SPIR-V type.
This file declares the Invocation class.
uint64_t allocate(uint64_t NumBytes)
Allocate a new buffer of size NumBytes.
This class represents an instruction result.
This file declares the Variable class.