Lines Matching refs:AMDGPUDeviceInfo
16 mHWBits.resize(AMDGPUDeviceInfo::MaxNumberCapabilities); in AMDGPUDevice()
17 mSWBits.resize(AMDGPUDeviceInfo::MaxNumberCapabilities); in AMDGPUDevice()
41 if (usesHardware(AMDGPUDeviceInfo::ConstantMem)) { in getMaxNumCBs()
50 if (usesHardware(AMDGPUDeviceInfo::ConstantMem)) { in getMaxCBSize()
69 mSWBits.set(AMDGPUDeviceInfo::HalfOps); in setCaps()
70 mSWBits.set(AMDGPUDeviceInfo::ByteOps); in setCaps()
71 mSWBits.set(AMDGPUDeviceInfo::ShortOps); in setCaps()
72 mSWBits.set(AMDGPUDeviceInfo::HW64BitDivMod); in setCaps()
73 if (mSTM->isOverride(AMDGPUDeviceInfo::NoInline)) { in setCaps()
74 mSWBits.set(AMDGPUDeviceInfo::NoInline); in setCaps()
76 if (mSTM->isOverride(AMDGPUDeviceInfo::MacroDB)) { in setCaps()
77 mSWBits.set(AMDGPUDeviceInfo::MacroDB); in setCaps()
79 if (mSTM->isOverride(AMDGPUDeviceInfo::Debug)) { in setCaps()
80 mSWBits.set(AMDGPUDeviceInfo::ConstantMem); in setCaps()
82 mHWBits.set(AMDGPUDeviceInfo::ConstantMem); in setCaps()
84 if (mSTM->isOverride(AMDGPUDeviceInfo::Debug)) { in setCaps()
85 mSWBits.set(AMDGPUDeviceInfo::PrivateMem); in setCaps()
87 mHWBits.set(AMDGPUDeviceInfo::PrivateMem); in setCaps()
89 if (mSTM->isOverride(AMDGPUDeviceInfo::BarrierDetect)) { in setCaps()
90 mSWBits.set(AMDGPUDeviceInfo::BarrierDetect); in setCaps()
92 mSWBits.set(AMDGPUDeviceInfo::ByteLDSOps); in setCaps()
93 mSWBits.set(AMDGPUDeviceInfo::LongOps); in setCaps()
96 AMDGPUDeviceInfo::ExecutionMode
97 AMDGPUDevice::getExecutionMode(AMDGPUDeviceInfo::Caps Caps) const in getExecutionMode()
101 return AMDGPUDeviceInfo::Hardware; in getExecutionMode()
106 return AMDGPUDeviceInfo::Software; in getExecutionMode()
109 return AMDGPUDeviceInfo::Unsupported; in getExecutionMode()
113 bool AMDGPUDevice::isSupported(AMDGPUDeviceInfo::Caps Mode) const in isSupported()
115 return getExecutionMode(Mode) != AMDGPUDeviceInfo::Unsupported; in isSupported()
118 bool AMDGPUDevice::usesHardware(AMDGPUDeviceInfo::Caps Mode) const in usesHardware()
120 return getExecutionMode(Mode) == AMDGPUDeviceInfo::Hardware; in usesHardware()
123 bool AMDGPUDevice::usesSoftware(AMDGPUDeviceInfo::Caps Mode) const in usesSoftware()
125 return getExecutionMode(Mode) == AMDGPUDeviceInfo::Software; in usesSoftware()