29#define DEBUG_TYPE "wasm-subtarget"
31#define GET_SUBTARGETINFO_CTOR
32#define GET_SUBTARGETINFO_TARGET_DESC
33#include "WebAssemblyGenSubtargetInfo.inc"
35#define OPTIONS_STRUCT_DEFS
36#include "WebAssemblyOptions.inc"
39 return C.getLibraryOptions().get<WebAssemblyOptions>();
47WebAssemblySubtarget::initializeSubtargetDependencies(
StringRef CPU,
60 HasCooperativeMultithreading =
true;
61 HasLibcallThreadContext =
true;
74 InstrInfo(initializeSubtargetDependencies(CPU, FS)), TLInfo(TM, *this) {
78 RegBankInfo.reset(RBI);
99 return CallLoweringInfo.get();
103 return InstSelector.get();
107 return Legalizer.get();
111 return RegBankInfo.get();
static GCRegistry::Add< ShadowStackGC > C("shadow-stack", "Very portable GC for uncooperative code generators")
Module.h This file contains the declarations for the Module class.
This file describes how to lower LLVM calls to machine code calls.
This file contains the WebAssembly implementation of the TargetInstrInfo class.
This file declares the targeting of the Machinelegalizer class for WebAssembly.
This file provides WebAssembly-specific target descriptions.
This file declares the targeting of the RegisterBankInfo class for WebAssembly.
This file declares the WebAssembly-specific subclass of TargetSubtarget.
This file declares the WebAssembly-specific subclass of TargetMachine.
This file contains the entry points for global functions defined in the LLVM WebAssembly back-end.
This is an important class for using LLVM in a threaded context.
A Module instance is used to store all the information related to an LLVM module.
Holds all the information related to register banks.
Represent a constant reference to a string, i.e.
Triple - Helper class for working with autoconf configuration names.
OSType getOS() const
Get the parsed operating system type of this triple.
This class provides the information for the WebAssembly target legalizer for GlobalISel.
This class provides the information for the target register banks.
WebAssemblySubtarget(const Triple &TT, StringRef CPU, StringRef FS, const WebAssemblyTargetMachine &TM, StringRef ABIName)
This constructor initializes the data members to match that of the specified triple.
bool enableAtomicExpand() const override
const WebAssemblyOptions & getCLOpts() const
const CallLowering * getCallLowering() const override
const WebAssemblyTargetLowering * getTargetLowering() const override
const WebAssemblyRegisterInfo * getRegisterInfo() const override
const RegisterBankInfo * getRegBankInfo() const override
bool enableMachineScheduler() const override
InstructionSelector * getInstructionSelector() const override
void ParseSubtargetFeatures(StringRef CPU, StringRef TuneCPU, StringRef FS)
Parses features string setting specified subtarget options.
bool useAA() const override
const LegalizerInfo * getLegalizerInfo() const override
This is an optimization pass for GlobalISel generic memory operations.
const WebAssemblyOptions & getWebAssemblyOptions(const LLVMContext &C)
LLVM_ABI raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
InstructionSelector * createWebAssemblyInstructionSelector(const WebAssemblyTargetMachine &TM, const WebAssemblySubtarget &Subtarget, const WebAssemblyRegisterBankInfo &RBI)