21#define DEBUG_TYPE "wasm-subtarget"
23#define GET_SUBTARGETINFO_CTOR
24#define GET_SUBTARGETINFO_TARGET_DESC
25#include "WebAssemblyGenSubtargetInfo.inc"
28WebAssemblySubtarget::initializeSubtargetDependencies(
StringRef CPU,
42 HasBulkMemoryOpt =
true;
43 Bits.set(WebAssembly::FeatureBulkMemoryOpt);
47 if (HasReferenceTypes) {
48 HasCallIndirectOverlong =
true;
49 Bits.set(WebAssembly::FeatureCallIndirectOverlong);
59 const std::string &CPU,
60 const std::string &FS,
63 TargetTriple(TT), InstrInfo(initializeSubtargetDependencies(CPU, FS)),
This file contains the WebAssembly implementation of the TargetInstrInfo class.
This file provides WebAssembly-specific target descriptions.
This file declares the WebAssembly-specific subclass of TargetSubtarget.
Container class for subtarget features.
StringRef - Represent a constant reference to a string, i.e.
constexpr bool empty() const
empty - Check if the string is empty.
Primary interface to the complete machine description for the target machine.
Triple - Helper class for working with autoconf configuration names.
bool enableAtomicExpand() const override
bool enableMachineScheduler() 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
This is an optimization pass for GlobalISel generic memory operations.
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.