File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -518,13 +518,15 @@ class TargetInfo : public TransferrableTargetInfo,
518
518
// / getInt128Align() - Returns the alignment of Int128.
519
519
unsigned getInt128Align () const { return Int128Align; }
520
520
521
- // / getBitIntAlign/Width - Return aligned size of '_BitInt' and
521
+ // / getBitIntAlign/Width - Return aligned size of '_BitInt' and
522
522
// / 'unsigned _BitInt' for this target, in bits.
523
523
unsigned getBitIntWidth (unsigned NumBits) const {
524
- return llvm::alignTo (NumBits, getBitIntAlign (NumBits));}
524
+ return llvm::alignTo (NumBits, getBitIntAlign (NumBits));
525
+ }
525
526
virtual unsigned getBitIntAlign (unsigned NumBits) const {
526
- return std::clamp<unsigned >(llvm::PowerOf2Ceil (NumBits), getCharWidth (),
527
- getLongLongAlign ());}
527
+ return std::clamp<unsigned >(llvm::PowerOf2Ceil (NumBits), getCharWidth (),
528
+ getLongLongAlign ());
529
+ }
528
530
529
531
// / getShortAccumWidth/Align - Return the size of 'signed short _Accum' and
530
532
// / 'unsigned short _Accum' for this target, in bits.
Original file line number Diff line number Diff line change @@ -1473,9 +1473,10 @@ bool AArch64TargetInfo::validatePointerAuthKey(
1473
1473
1474
1474
bool AArch64TargetInfo::hasInt128Type () const { return true ; }
1475
1475
1476
- unsigned AArch64TargetInfo::getBitIntAlign (unsigned NumBits) const {
1477
- return std::clamp<unsigned >(llvm::PowerOf2Ceil (NumBits), getCharWidth (),
1478
- getInt128Align ());}
1476
+ unsigned AArch64TargetInfo::getBitIntAlign (unsigned NumBits) const {
1477
+ return std::clamp<unsigned >(llvm::PowerOf2Ceil (NumBits), getCharWidth (),
1478
+ getInt128Align ());
1479
+ }
1479
1480
1480
1481
AArch64leTargetInfo::AArch64leTargetInfo (const llvm::Triple &Triple,
1481
1482
const TargetOptions &Opts)
Original file line number Diff line number Diff line change @@ -204,7 +204,6 @@ class LLVM_LIBRARY_VISIBILITY AArch64TargetInfo : public TargetInfo {
204
204
bool validateTarget (DiagnosticsEngine &Diags) const override ;
205
205
206
206
unsigned getBitIntAlign (unsigned NumBits) const override ;
207
-
208
207
};
209
208
210
209
class LLVM_LIBRARY_VISIBILITY AArch64leTargetInfo : public AArch64TargetInfo {
You can’t perform that action at this time.
0 commit comments