Skip to content

Commit

Permalink
Rename getSMESaveBufferUsed -> isSMESaveBufferUsed
Browse files Browse the repository at this point in the history
  • Loading branch information
sdesmalen-arm committed Dec 23, 2024
1 parent fc9d150 commit b5a6d3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3231,7 +3231,7 @@ AArch64TargetLowering::EmitAllocateSMESaveBuffer(MachineInstr &MI,
"Lazy ZA save is not yet supported on Windows");

const TargetInstrInfo *TII = Subtarget->getInstrInfo();
if (FuncInfo->getSMESaveBufferUsed()) {
if (FuncInfo->isSMESaveBufferUsed()) {
// Allocate a buffer object of the size given by MI.getOperand(1).
auto Size = MI.getOperand(1).getReg();
auto Dest = MI.getOperand(0).getReg();
Expand Down Expand Up @@ -3259,7 +3259,7 @@ AArch64TargetLowering::EmitGetSMESaveSize(MachineInstr &MI,
MachineFunction *MF = BB->getParent();
AArch64FunctionInfo *FuncInfo = MF->getInfo<AArch64FunctionInfo>();
const TargetInstrInfo *TII = Subtarget->getInstrInfo();
if (FuncInfo->getSMESaveBufferUsed()) {
if (FuncInfo->isSMESaveBufferUsed()) {
const AArch64RegisterInfo *TRI = Subtarget->getRegisterInfo();
BuildMI(*BB, MI, MI.getDebugLoc(), TII->get(AArch64::BL))
.addExternalSymbol("__arm_sme_state_size")
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ class AArch64FunctionInfo final : public MachineFunctionInfo {
Register getSMESaveBufferAddr() const { return SMESaveBufferAddr; };
void setSMESaveBufferAddr(Register Reg) { SMESaveBufferAddr = Reg; };

unsigned getSMESaveBufferUsed() const { return SMESaveBufferUsed; };
unsigned isSMESaveBufferUsed() const { return SMESaveBufferUsed; };
void setSMESaveBufferUsed(bool Used = true) { SMESaveBufferUsed = Used; };

Register getPStateSMReg() const { return PStateSMReg; };
Expand Down

0 comments on commit b5a6d3e

Please sign in to comment.