mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 00:20:25 +00:00
Remove all use of getDrvInterface off of NVPTXSubtarget and clean
up code accordingly. Delete code that was checking for all cases of an enum. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229786 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -51,6 +51,12 @@ NVPTXSubtarget::NVPTXSubtarget(const std::string &TT, const std::string &CPU,
|
||||
InstrInfo(initializeSubtargetDependencies(CPU, FS)), TLInfo(TM, *this),
|
||||
TSInfo(TM.getDataLayout()), FrameLowering(*this) {}
|
||||
|
||||
NVPTX::DrvInterface NVPTXSubtarget::getDrvInterface() const {
|
||||
return TM.getDrvInterface();
|
||||
bool NVPTXSubtarget::hasImageHandles() const {
|
||||
// Enable handles for Kepler+, where CUDA supports indirect surfaces and
|
||||
// textures
|
||||
if (TM.getDrvInterface() == NVPTX::CUDA)
|
||||
return (SmVersion >= 30);
|
||||
|
||||
// Disabled, otherwise
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user