OLD | NEW |
1 //===-- AMDILDeviceInfo.cpp - AMDILDeviceInfo class -----------------------===// | 1 //===-- AMDILDeviceInfo.cpp - AMDILDeviceInfo class -----------------------===// |
2 // | 2 // |
3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //==-----------------------------------------------------------------------===// | 8 //==-----------------------------------------------------------------------===// |
9 // | 9 // |
10 /// \file | 10 /// \file |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 return new AMDGPUCaymanDevice(ptr); | 74 return new AMDGPUCaymanDevice(ptr); |
75 } else if (deviceName == "caicos") { | 75 } else if (deviceName == "caicos") { |
76 #if DEBUG | 76 #if DEBUG |
77 assert(!is64bit && "This device does not support 64bit pointers!"); | 77 assert(!is64bit && "This device does not support 64bit pointers!"); |
78 assert(!is64on32bit && "This device does not support 64bit" | 78 assert(!is64on32bit && "This device does not support 64bit" |
79 " on 32bit pointers!"); | 79 " on 32bit pointers!"); |
80 #endif | 80 #endif |
81 return new AMDGPUNIDevice(ptr); | 81 return new AMDGPUNIDevice(ptr); |
82 } else if (deviceName == "SI" || | 82 } else if (deviceName == "SI" || |
83 deviceName == "tahiti" || deviceName == "pitcairn" || | 83 deviceName == "tahiti" || deviceName == "pitcairn" || |
84 deviceName == "verde" || deviceName == "oland" || | 84 deviceName == "verde" || deviceName == "oland") { |
85 » deviceName == "hainan") { | |
86 return new AMDGPUSIDevice(ptr); | 85 return new AMDGPUSIDevice(ptr); |
87 } else { | 86 } else { |
88 #if DEBUG | 87 #if DEBUG |
89 assert(!is64bit && "This device does not support 64bit pointers!"); | 88 assert(!is64bit && "This device does not support 64bit pointers!"); |
90 assert(!is64on32bit && "This device does not support 64bit" | 89 assert(!is64on32bit && "This device does not support 64bit" |
91 " on 32bit pointers!"); | 90 " on 32bit pointers!"); |
92 #endif | 91 #endif |
93 return new AMDGPU7XXDevice(ptr); | 92 return new AMDGPU7XXDevice(ptr); |
94 } | 93 } |
95 } | 94 } |
96 } // End namespace AMDGPUDeviceInfo | 95 } // End namespace AMDGPUDeviceInfo |
97 } // End namespace llvm | 96 } // End namespace llvm |
OLD | NEW |