@@ -153,40 +153,12 @@ class LLVM_LIBRARY_VISIBILITY SPIR64TargetInfo : public SPIRTargetInfo {
153
153
MacroBuilder &Builder) const override ;
154
154
};
155
155
156
- class LLVM_LIBRARY_VISIBILITY SPIR32SYCLDeviceTargetInfo
157
- : public SPIR32TargetInfo {
158
- public:
159
- SPIR32SYCLDeviceTargetInfo (const llvm::Triple &Triple,
160
- const TargetOptions &Opts)
161
- : SPIR32TargetInfo(Triple, Opts) {
162
- // This is workaround for exception_ptr class.
163
- // Exceptions is not allowed in sycl device code but we should be able
164
- // to parse host code. So we allow compilation of exception_ptr but
165
- // if exceptions are used in device code we should emit a diagnostic.
166
- MaxAtomicInlineWidth = 32 ;
167
- }
168
- };
169
-
170
- class LLVM_LIBRARY_VISIBILITY SPIR64SYCLDeviceTargetInfo
171
- : public SPIR64TargetInfo {
172
- public:
173
- SPIR64SYCLDeviceTargetInfo (const llvm::Triple &Triple,
174
- const TargetOptions &Opts)
175
- : SPIR64TargetInfo(Triple, Opts) {
176
- // This is workaround for exception_ptr class.
177
- // Exceptions is not allowed in sycl device code but we should be able
178
- // to parse host code. So we allow compilation of exception_ptr but
179
- // if exceptions are used in device code we should emit a diagnostic.
180
- MaxAtomicInlineWidth = 64 ;
181
- }
182
- };
183
-
184
156
// x86-32 SPIR Windows target
185
157
class LLVM_LIBRARY_VISIBILITY WindowsX86_32SPIRTargetInfo
186
- : public WindowsTargetInfo<SPIR32SYCLDeviceTargetInfo > {
158
+ : public WindowsTargetInfo<SPIR32TargetInfo > {
187
159
public:
188
160
WindowsX86_32SPIRTargetInfo (const llvm::Triple &Triple, const TargetOptions &Opts)
189
- : WindowsTargetInfo<SPIR32SYCLDeviceTargetInfo >(Triple, Opts) {
161
+ : WindowsTargetInfo<SPIR32TargetInfo >(Triple, Opts) {
190
162
DoubleAlign = LongLongAlign = 64 ;
191
163
WCharType = UnsignedShort;
192
164
}
@@ -229,10 +201,10 @@ class LLVM_LIBRARY_VISIBILITY MicrosoftX86_32SPIRTargetInfo
229
201
230
202
// x86-64 SPIR64 Windows target
231
203
class LLVM_LIBRARY_VISIBILITY WindowsX86_64_SPIR64TargetInfo
232
- : public WindowsTargetInfo<SPIR64SYCLDeviceTargetInfo > {
204
+ : public WindowsTargetInfo<SPIR64TargetInfo > {
233
205
public:
234
206
WindowsX86_64_SPIR64TargetInfo (const llvm::Triple &Triple, const TargetOptions &Opts)
235
- : WindowsTargetInfo<SPIR64SYCLDeviceTargetInfo >(Triple, Opts) {
207
+ : WindowsTargetInfo<SPIR64TargetInfo >(Triple, Opts) {
236
208
LongWidth = LongAlign = 32 ;
237
209
DoubleAlign = LongLongAlign = 64 ;
238
210
IntMaxType = SignedLongLong;
0 commit comments