LLVM  13.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 
12 using 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 }
llvm
Definition: AllocatorList.h:23
MCTargetAsmParser.h
llvm::MCAsmParserExtension::getContext
MCContext & getContext()
Definition: MCAsmParserExtension.h:55
MCContext.h
llvm::MCTargetAsmParser::MCTargetAsmParser
MCTargetAsmParser(MCTargetOptions const &, const MCSubtargetInfo &STI, const MCInstrInfo &MII)
Definition: MCTargetAsmParser.cpp:14
llvm::MCTargetOptions
Definition: MCTargetOptions.h:36
llvm::MCTargetAsmParser::STI
const MCSubtargetInfo * STI
Current STI.
Definition: MCTargetAsmParser.h:342
llvm::MCInstrInfo
Interface to description of machine instruction set.
Definition: MCInstrInfo.h:25
llvm::MCTargetAsmParser::getSTI
const MCSubtargetInfo & getSTI() const
Definition: MCTargetAsmParser.cpp:27
llvm::MCTargetAsmParser::copySTI
MCSubtargetInfo & copySTI()
Create a copy of STI and return a non-const reference to it.
Definition: MCTargetAsmParser.cpp:21
llvm::MCTargetAsmParser::~MCTargetAsmParser
~MCTargetAsmParser() override
llvm::MCContext::getSubtargetCopy
MCSubtargetInfo & getSubtargetCopy(const MCSubtargetInfo &STI)
Definition: MCContext.cpp:784
llvm::MCSubtargetInfo
Generic base class for all target subtargets.
Definition: MCSubtargetInfo.h:75