Home
last modified time | relevance | path

Searched refs:HwMode (Results 1 – 20 of 20) sorted by relevance

/llvm-project-15.0.7/llvm/utils/TableGen/
H A DCodeGenHwModes.h28 struct HwMode { struct
29 HwMode(Record *R);
48 const HwMode &getMode(unsigned Id) const { in getMode() argument
59 std::vector<HwMode> Modes;
H A DCodeGenHwModes.cpp21 HwMode::HwMode(Record *R) { in HwMode() function in HwMode
27 void HwMode::dump() const { in dump()
96 for (const HwMode &M : Modes) { in dump()
H A DVarLenCodeEmitterGen.cpp75 CodeGenTarget &Target, int HwMode = -1);
233 for (unsigned HwMode : HwModes) in run() local
234 emitInstructionBaseValues(OS, NumberedInstructions, Target, (int)HwMode); in run()
321 CodeGenTarget &Target, int HwMode) { in emitInstructionBaseValues() argument
326 if (HwMode == -1) { in emitInstructionBaseValues()
330 StringRef Name = HWM.getMode(HwMode).Name; in emitInstructionBaseValues()
349 if (EBM.hasMode(HwMode)) in emitInstructionBaseValues()
350 EncodingDef = EBM.get(HwMode); in emitInstructionBaseValues()
H A DCodeEmitterGen.cpp61 CodeGenTarget &Target, int HwMode = -1);
343 CodeGenTarget &Target, int HwMode) { in emitInstructionBaseValues() argument
345 if (HwMode == -1) in emitInstructionBaseValues()
348 o << " static const uint64_t InstBits_" << HWM.getMode(HwMode).Name in emitInstructionBaseValues()
364 if (EBM.hasMode(HwMode)) in emitInstructionBaseValues()
365 EncodingDef = EBM.get(HwMode); in emitInstructionBaseValues()
444 for (unsigned HwMode : HwModes) in run() local
445 emitInstructionBaseValues(o, NumberedInstructions, Target, (int)HwMode); in run()
H A DSubtargetEmitter.cpp1713 const HwMode &HM = CGH.getMode(M); in EmitHwModeCheck()
H A DCodeGenDAGPatterns.cpp4453 const HwMode &HM = CGH.getMode(M); in ExpandHwModeBasedTypes()
/llvm-project-15.0.7/llvm/test/TableGen/
H A DHwModeEncodeDecode.td16 def ModeA : HwMode<"+a">;
17 def ModeB : HwMode<"+b">;
88 // ENCODER: switch (HwMode) {
89 // ENCODER: default: llvm_unreachable("Unhandled HwMode");
H A DHwModeSelect.td21 def TestMode1 : HwMode<"+feat1">;
22 def TestMode2 : HwMode<"+feat2">;
/llvm-project-15.0.7/llvm/lib/Target/LoongArch/
H A DLoongArchRegisterInfo.cpp30 LoongArchRegisterInfo::LoongArchRegisterInfo(unsigned HwMode) in LoongArchRegisterInfo() argument
33 /*PC*/ 0, HwMode) {} in LoongArchRegisterInfo()
H A DLoongArchRegisterInfo.h26 LoongArchRegisterInfo(unsigned HwMode);
H A DLoongArch.td30 def LA64 : HwMode<"+64bit">;
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVRegisterInfo.h25 RISCVRegisterInfo(unsigned HwMode);
H A DRISCVRegisterInfo.cpp46 RISCVRegisterInfo::RISCVRegisterInfo(unsigned HwMode) in RISCVRegisterInfo() argument
48 /*PC*/0, HwMode) {} in RISCVRegisterInfo()
H A DRISCV.td447 def RV64 : HwMode<"+64bit">;
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonRegisterInfo.h31 HexagonRegisterInfo(unsigned HwMode);
H A DHexagonRegisterInfo.cpp56 HexagonRegisterInfo::HexagonRegisterInfo(unsigned HwMode) in HexagonRegisterInfo() argument
58 0/*PC*/, HwMode) {} in HexagonRegisterInfo()
H A DHexagon.td151 def Hvx64: HwMode<"+hvx-length64b">;
152 def Hvx128: HwMode<"+hvx-length128b">;
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DTargetRegisterInfo.h251 unsigned HwMode; variable
733 return RCInfos[getNumRegClasses() * HwMode + RC.getID()]; in getRegClassInfo()
/llvm-project-15.0.7/llvm/include/llvm/Target/
H A DTarget.td21 class HwMode<string FS> {
34 def DefaultMode : HwMode<"">;
41 class HwModeSelect<list<HwMode> Ms> {
42 list<HwMode> Modes = Ms;
50 class ValueTypeByHwMode<list<HwMode> Ms, list<ValueType> Ts>
65 class RegInfoByHwMode<list<HwMode> Ms = [], list<RegInfo> Ts = []>
476 // Allows specifying an InstructionEncoding by HwMode. If an Instruction specifies
478 // to encode and decode based on HwMode.
479 class EncodingByHwMode<list<HwMode> Ms = [], list<InstructionEncoding> Ts = []>
496 // Allows specifying a canonical InstructionEncoding by HwMode. If non-empty,
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DTargetRegisterInfo.cpp64 RCInfos(RCIs), HwMode(Mode) { in TargetRegisterInfo()