[llvm] [Xtensa] Implement lowering Mul/Div/Shift operations. (PR #99981)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 5 18:02:58 PDT 2024
================
@@ -827,9 +1010,70 @@ XtensaTargetLowering::emitSelectCC(MachineInstr &MI,
MachineBasicBlock *XtensaTargetLowering::EmitInstrWithCustomInserter(
MachineInstr &MI, MachineBasicBlock *MBB) const {
+ const TargetInstrInfo &TII = *Subtarget.getInstrInfo();
+ DebugLoc DL = MI.getDebugLoc();
+
switch (MI.getOpcode()) {
case Xtensa::SELECT:
return emitSelectCC(MI, MBB);
+ case Xtensa::SHL_P: {
----------------
s-barannikov wrote:
This code should be moved to XtensaISelDAGToDAG.cpp and SHL_P and others removed.
https://github.com/llvm/llvm-project/pull/99981
More information about the llvm-commits
mailing list