================ @@ -0,0 +1,57 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// +/// +/// \file +/// This file implements utility functions for the PISA backend. +/// +//===----------------------------------------------------------------------===// + +#include "PISAUtils.h" +#include "MCTargetDesc/PISABaseInfo.h" +#include "PISA.h" +#include "PISAInstrInfo.h" +#include "llvm/ADT/StringRef.h" +#include "llvm/CodeGen/GlobalISel/MachineIRBuilder.h" +#include "llvm/CodeGen/MachineInstr.h" +#include "llvm/CodeGen/MachineInstrBuilder.h" +#include "llvm/Demangle/Demangle.h" +#include "llvm/IR/IntrinsicsPISA.h" + +namespace llvm::PISA { +std::tuple<MachineInstr *, unsigned> +getDefIgnoringBitcasts(Register Reg, const MachineRegisterInfo &MRI, + bool NoVectors) { + MachineInstr *DefMI = MRI.getVRegDef(Reg); + unsigned Opc = DefMI->getOpcode(); + Register SrcReg = 0; ---------------- topperc wrote:
```suggestion Register SrcReg; ``` https://github.com/llvm/llvm-project/pull/214107 _______________________________________________ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
