26#define DEBUG_TYPE "wasm-subtarget"
28#define GET_SUBTARGETINFO_CTOR
29#define GET_SUBTARGETINFO_TARGET_DESC
30#include "WebAssemblyGenSubtargetInfo.inc"
33WebAssemblySubtarget::initializeSubtargetDependencies(
StringRef CPU,
47 HasBulkMemoryOpt =
true;
48 Bits.set(WebAssembly::FeatureBulkMemoryOpt);
53 HasReferenceTypes =
true;
57 if (HasReferenceTypes) {
58 HasCallIndirectOverlong =
true;
59 Bits.set(WebAssembly::FeatureCallIndirectOverlong);
69 const std::string &CPU,
70 const std::string &FS,
73 TargetTriple(TT), InstrInfo(initializeSubtargetDependencies(CPU, FS)),
78 RegBankInfo.reset(RBI);
99 return CallLoweringInfo.get();
103 return InstSelector.get();
107 return Legalizer.get();
111 return RegBankInfo.get();
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.
Container class for subtarget features.
Holds all the information related to register banks.
StringRef - Represent a constant reference to a string, i.e.
Primary interface to the complete machine description for the target machine.
Triple - Helper class for working with autoconf configuration names.
This class provides the information for the WebAssembly target legalizer for GlobalISel.
This class provides the information for the target register banks.
bool enableAtomicExpand() const override
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
WebAssemblySubtarget(const Triple &TT, const std::string &CPU, const std::string &FS, const TargetMachine &TM)
This constructor initializes the data members to match that of the specified triple.
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.
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)