@@ -199,13 +199,13 @@ void AArch64TargetInfo::getTargetDefines(const LangOptions &Opts,
199
199
if (FPU & SveMode)
200
200
Builder.defineMacro (" __ARM_FEATURE_SVE" , " 1" );
201
201
202
- if (CRC )
202
+ if (HasCRC )
203
203
Builder.defineMacro (" __ARM_FEATURE_CRC32" , " 1" );
204
204
205
- if (Crypto )
205
+ if (HasCrypto )
206
206
Builder.defineMacro (" __ARM_FEATURE_CRYPTO" , " 1" );
207
207
208
- if (Unaligned )
208
+ if (HasUnaligned )
209
209
Builder.defineMacro (" __ARM_FEATURE_UNALIGNED" , " 1" );
210
210
211
211
if ((FPU & NeonMode) && HasFullFP16)
@@ -263,13 +263,13 @@ bool AArch64TargetInfo::hasFeature(StringRef Feature) const {
263
263
bool AArch64TargetInfo::handleTargetFeatures (std::vector<std::string> &Features,
264
264
DiagnosticsEngine &Diags) {
265
265
FPU = FPUMode;
266
- CRC = 0 ;
267
- Crypto = 0 ;
268
- Unaligned = 1 ;
269
- HasFullFP16 = 0 ;
270
- HasDotProd = 0 ;
271
- HasFP16FML = 0 ;
272
- HasMTE = 0 ;
266
+ HasCRC = false ;
267
+ HasCrypto = false ;
268
+ HasUnaligned = true ;
269
+ HasFullFP16 = false ;
270
+ HasDotProd = false ;
271
+ HasFP16FML = false ;
272
+ HasMTE = false ;
273
273
ArchKind = llvm::AArch64::ArchKind::ARMV8A;
274
274
275
275
for (const auto &Feature : Features) {
@@ -278,11 +278,11 @@ bool AArch64TargetInfo::handleTargetFeatures(std::vector<std::string> &Features,
278
278
if (Feature == " +sve" )
279
279
FPU |= SveMode;
280
280
if (Feature == " +crc" )
281
- CRC = 1 ;
281
+ HasCRC = true ;
282
282
if (Feature == " +crypto" )
283
- Crypto = 1 ;
283
+ HasCrypto = true ;
284
284
if (Feature == " +strict-align" )
285
- Unaligned = 0 ;
285
+ HasUnaligned = false ;
286
286
if (Feature == " +v8.1a" )
287
287
ArchKind = llvm::AArch64::ArchKind::ARMV8_1A;
288
288
if (Feature == " +v8.2a" )
@@ -294,13 +294,13 @@ bool AArch64TargetInfo::handleTargetFeatures(std::vector<std::string> &Features,
294
294
if (Feature == " +v8.5a" )
295
295
ArchKind = llvm::AArch64::ArchKind::ARMV8_5A;
296
296
if (Feature == " +fullfp16" )
297
- HasFullFP16 = 1 ;
297
+ HasFullFP16 = true ;
298
298
if (Feature == " +dotprod" )
299
- HasDotProd = 1 ;
299
+ HasDotProd = true ;
300
300
if (Feature == " +fp16fml" )
301
- HasFP16FML = 1 ;
301
+ HasFP16FML = true ;
302
302
if (Feature == " +mte" )
303
- HasMTE = 1 ;
303
+ HasMTE = true ;
304
304
}
305
305
306
306
setDataLayout ();
0 commit comments