[llvm] [Xtensa] Implement lowering Mul/Div/Shift operations. (PR #99981)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 26 10:50:27 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:
Instruction selection should be done in `XtensaDAGToDAGISel::Select`.
https://github.com/llvm/llvm-project/pull/99981
More information about the llvm-commits
mailing list