LLVM 17.0.0git
MCTargetAsmParser.cpp
Go to the documentation of this file.
1//===-- MCTargetAsmParser.cpp - Target Assembly Parser --------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
10#include "llvm/MC/MCContext.h"
11
12using namespace llvm;
13
15 const MCSubtargetInfo &STI,
16 const MCInstrInfo &MII)
17 : MCOptions(MCOptions), STI(&STI), MII(MII) {}
18
20
23 STI = &STICopy;
24 return STICopy;
25}
26
28 return *STI;
29}
MCSubtargetInfo & getSubtargetCopy(const MCSubtargetInfo &STI)
Definition: MCContext.cpp:881
Interface to description of machine instruction set.
Definition: MCInstrInfo.h:26
Generic base class for all target subtargets.
MCSubtargetInfo & copySTI()
Create a copy of STI and return a non-const reference to it.
MCTargetAsmParser(MCTargetOptions const &, const MCSubtargetInfo &STI, const MCInstrInfo &MII)
const MCSubtargetInfo & getSTI() const
~MCTargetAsmParser() override
const MCSubtargetInfo * STI
Current STI.
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18