diff options
author | Alexey Bader <alexey.bader@intel.com> | 2016-05-13 14:46:34 +0300 |
---|---|---|
committer | Alexey Bader <alexey.bader@intel.com> | 2016-05-13 14:55:24 +0300 |
commit | 54ecf9ff59b233ce6c07e30f7472571e93bfa161 (patch) | |
tree | 7b8db9389f5abb3c7963c8b56ff587c3981c7db7 /lib/SPIRV/libSPIRV/SPIRVModule.cpp | |
parent | ef260e755a2a18a41fc56b345d5fafcd9cbb00ba (diff) |
[SPIR-V] Add required 'Groups' and 'DeviceEnqueue' capabilities.
Diffstat (limited to 'lib/SPIRV/libSPIRV/SPIRVModule.cpp')
-rw-r--r-- | lib/SPIRV/libSPIRV/SPIRVModule.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/SPIRV/libSPIRV/SPIRVModule.cpp b/lib/SPIRV/libSPIRV/SPIRVModule.cpp index 69ccf45..bc725ac 100644 --- a/lib/SPIRV/libSPIRV/SPIRVModule.cpp +++ b/lib/SPIRV/libSPIRV/SPIRVModule.cpp @@ -196,6 +196,7 @@ public: virtual void closeStructType(SPIRVTypeStruct *T, bool);
virtual SPIRVTypeVector *addVectorType(SPIRVType *, SPIRVWord);
virtual SPIRVType *addOpaqueGenericType(Op);
+ virtual SPIRVTypeDeviceEvent *addDeviceEventType();
virtual SPIRVTypePipe *addPipeType();
virtual SPIRVTypeVoid *addVoidType();
virtual void createForwardPointers();
@@ -703,6 +704,12 @@ SPIRVType * SPIRVModuleImpl::addOpaqueGenericType(Op TheOpCode) {
return addType(new SPIRVTypeOpaqueGeneric(TheOpCode, this, getId()));
}
+
+SPIRVTypeDeviceEvent *
+SPIRVModuleImpl::addDeviceEventType() {
+ return addType(new SPIRVTypeDeviceEvent(this, getId()));
+}
+
SPIRVTypePipe*
SPIRVModuleImpl::addPipeType() {
return addType(new SPIRVTypePipe(this, getId()));
|