Add methods to get builtins and compiler interface from device

Related-To: NEO-4355
Change-Id: I6b120b5293a180ce35a1671b5d2952003d56f9a6
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2020-03-05 07:11:11 +01:00
committed by sys_ocldev
parent 9fadc918c7
commit 899045f900
3 changed files with 11 additions and 2 deletions

View File

@@ -72,6 +72,8 @@ class Device : public ReferenceTrackedObject<Device> {
SpecializedDeviceT *getSpecializedDevice() const {
return reinterpret_cast<SpecializedDeviceT *>(specializedDevice);
}
CompilerInterface *getCompilerInterface() const;
BuiltIns *getBuiltIns() const;
virtual uint32_t getRootDeviceIndex() const = 0;
virtual uint32_t getNumAvailableDevices() const = 0;
@@ -134,6 +136,13 @@ inline GmmHelper *Device::getGmmHelper() const {
return getRootDeviceEnvironment().getGmmHelper();
}
inline CompilerInterface *Device::getCompilerInterface() const {
return executionEnvironment->getCompilerInterface();
}
inline BuiltIns *Device::getBuiltIns() const {
return executionEnvironment->getBuiltIns();
}
inline std::atomic<uint32_t> &Device::getSelectorCopyEngine() {
return selectorCopyEngine;
}