15 #ifndef LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYSUBTARGET_H 16 #define LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYSUBTARGET_H 25 #define GET_SUBTARGETINFO_ENUM 26 #define GET_SUBTARGETINFO_HEADER 27 #include "WebAssemblyGenSubtargetInfo.inc" 32 extern const SubtargetFeatureKV
42 bool HasAtomics =
false;
43 bool HasNontrappingFPToInt =
false;
44 bool HasSignExt =
false;
45 bool HasExceptionHandling =
false;
46 bool HasBulkMemory =
false;
47 bool HasMultivalue =
false;
48 bool HasMutableGlobals =
false;
49 bool HasTailCall =
false;
52 std::string CPUString;
76 return &FrameLowering;
91 bool useAA()
const override;
97 return SIMDLevel >= UnimplementedSIMD128;
This file defines the interfaces that WebAssembly uses to lower LLVM code into a selection DAG...
bool enableMachineScheduler() const override
This class represents lattice values for constants.
const WebAssemblyRegisterInfo & getRegisterInfo() const
bool useAA() const override
bool hasExceptionHandling() const
const WebAssemblyFrameLowering * getFrameLowering() const override
bool hasUnimplementedSIMD128() const
const SubtargetFeatureKV WebAssemblyFeatureKV[WebAssembly::NumSubtargetFeatures]
void ParseSubtargetFeatures(StringRef CPU, StringRef FS)
Parses features string setting specified subtarget options.
bool hasMultivalue() const
const Triple & getTargetTriple() const
const WebAssemblySelectionDAGInfo * getSelectionDAGInfo() const override
Triple - Helper class for working with autoconf configuration names.
const WebAssemblyTargetLowering * getTargetLowering() const override
This file contains the WebAssembly implementation of the TargetInstrInfo class.
This file defines the WebAssembly subclass for SelectionDAGTargetInfo.
const WebAssemblyRegisterInfo * getRegisterInfo() const override
bool hasMutableGlobals() const
This class implements WebAssembly-specific bits of TargetFrameLowering class.
bool isArch64Bit() const
Test whether the architecture is 64-bit.
bool hasNontrappingFPToInt() const
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.
bool hasBulkMemory() const
bool enableAtomicExpand() const override
bool enableIndirectBrExpand() const override
Primary interface to the complete machine description for the target machine.
StringRef - Represent a constant reference to a string, i.e.
const WebAssemblyInstrInfo * getInstrInfo() const override