[PATCH] D123496: Add Stackmap support for RISC-V
Sacha Coppey via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 11 06:19:29 PDT 2022
Zeavee updated this revision to Diff 421898.
Zeavee added a comment.
Removes RISCVMCInstLower.h which was not used.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123496/new/
https://reviews.llvm.org/D123496
Files:
llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp
llvm/lib/Target/RISCV/RISCVMCInstLower.cpp
llvm/lib/Target/RISCV/RISCVMCInstLower.h
Index: llvm/lib/Target/RISCV/RISCVMCInstLower.h
===================================================================
--- llvm/lib/Target/RISCV/RISCVMCInstLower.h
+++ /dev/null
@@ -1,40 +0,0 @@
-//===-- RISCVMCInstLower.h - Lower MachineInstr to MCInst -----------------===//
-//
-// 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
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef LLVM_LIB_TARGET_RISCV_RISCVMCINSTLOWER_H
-#define LLVM_LIB_TARGET_RISCV_RISCVMCINSTLOWER_H
-
-#include "llvm/ADT/Triple.h"
-#include "llvm/Support/Compiler.h"
-
-namespace llvm {
-class AsmPrinter;
-class MCAsmInfo;
-class MCContext;
-class MCInst;
-class MCOperand;
-class MCSymbol;
-class MachineInstr;
-class MachineModuleInfoMachO;
-class MachineOperand;
-class Mangler;
-
-/// RISCVMCInstLower - This class is used to lower an MachineInstr
-/// into an MCInst.
-class LLVM_LIBRARY_VISIBILITY RISCVMCInstLower {
- MCContext &Ctx;
- AsmPrinter &Printer;
- Triple TargetTriple;
-
-public:
- RISCVMCInstLower(MCContext &ctx, AsmPrinter &printer);
-
-};
-}
-
-#endif
Index: llvm/lib/Target/RISCV/RISCVMCInstLower.cpp
===================================================================
--- llvm/lib/Target/RISCV/RISCVMCInstLower.cpp
+++ llvm/lib/Target/RISCV/RISCVMCInstLower.cpp
@@ -11,7 +11,6 @@
//
//===----------------------------------------------------------------------===//
-#include "RISCVMCInstLower.h"
#include "RISCV.h"
#include "RISCVSubtarget.h"
#include "MCTargetDesc/RISCVMCExpr.h"
@@ -27,9 +26,6 @@
using namespace llvm;
-RISCVMCInstLower::RISCVMCInstLower(MCContext &ctx, AsmPrinter &printer)
- : Ctx(ctx), Printer(printer) {}
-
static MCOperand lowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym,
const AsmPrinter &AP) {
MCContext &Ctx = AP.OutContext;
Index: llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp
===================================================================
--- llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp
+++ llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp
@@ -15,7 +15,6 @@
#include "MCTargetDesc/RISCVMCExpr.h"
#include "MCTargetDesc/RISCVTargetStreamer.h"
#include "RISCV.h"
-#include "RISCVMCInstLower.h"
#include "RISCVTargetMachine.h"
#include "TargetInfo/RISCVTargetInfo.h"
#include "llvm/ADT/Statistic.h"
@@ -42,15 +41,13 @@
namespace {
class RISCVAsmPrinter : public AsmPrinter {
const MCSubtargetInfo *MCSTI;
- RISCVMCInstLower MCInstLowering;
StackMaps SM;
const RISCVSubtarget *STI;
public:
explicit RISCVAsmPrinter(TargetMachine &TM,
std::unique_ptr<MCStreamer> Streamer)
- : AsmPrinter(TM, std::move(Streamer)), MCSTI(TM.getMCSubtargetInfo()),
- MCInstLowering(OutContext, *this), SM(*this) {}
+ : AsmPrinter(TM, std::move(Streamer)), MCSTI(TM.getMCSubtargetInfo()), SM(*this) {}
StringRef getPassName() const override { return "RISCV Assembly Printer"; }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123496.421898.patch
Type: text/x-patch
Size: 3114 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220411/c4f6e4f6/attachment.bin>
More information about the llvm-commits
mailing list