Home
last modified time | relevance | path

Searched refs:AluCode (Results 1 – 6 of 6) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/
H A DLanaiAluCode.h21 enum AluCode {
102 inline static AluCode stringToLanaiAluCode(StringRef S) {
103 return StringSwitch<AluCode>(S) in stringToLanaiAluCode()
22 enum AluCode { global() enum
H A DLanaiISelDAGToDAG.cpp210 static AluCode isdToLanaiAluCode(ISD::NodeType Node_type) { in isdToLanaiAluCode()
213 return AluCode::ADD; in isdToLanaiAluCode()
215 return AluCode::ADDC; in isdToLanaiAluCode()
217 return AluCode::SUB; in isdToLanaiAluCode()
219 return AluCode::SUBB; in isdToLanaiAluCode()
221 return AluCode::AND; in isdToLanaiAluCode()
223 return AluCode::OR; in isdToLanaiAluCode()
225 return AluCode::XOR; in isdToLanaiAluCode()
227 return AluCode::SHL; in isdToLanaiAluCode()
229 return AluCode::SRL; in isdToLanaiAluCode()
[all …]
H A DLanaiMemAluCombiner.cpp195 LPAC::AluCode mergedAluCode(unsigned AluOpcode) { in mergedAluCode()
244 LPAC::AluCode AluOpcode = mergedAluCode(AluInstr->getOpcode()); in insertMergedInstruction()
369 LPAC::AluCode AluOpcode = static_cast<LPAC::AluCode>(AluOperand.getImm()); in combineMemAluInBasicBlock()
/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/MCTargetDesc/
H A DLanaiInstPrinter.cpp46 unsigned AluCode = MI->getOperand(3).getImm(); in usesGivenOffset() local
47 return LPAC::encodeLanaiAluCode(AluCode) == LPAC::ADD && in usesGivenOffset()
53 unsigned AluCode = MI->getOperand(3).getImm(); in isPreIncrementForm() local
54 return LPAC::isPreOp(AluCode) && usesGivenOffset(MI, AddOffset); in isPreIncrementForm()
58 unsigned AluCode = MI->getOperand(3).getImm(); in isPostIncrementForm() local
59 return LPAC::isPostOp(AluCode) && usesGivenOffset(MI, AddOffset); in isPostIncrementForm()
209 static void printMemoryBaseRegister(raw_ostream &OS, const unsigned AluCode, in printMemoryBaseRegister() argument
213 if (LPAC::isPreOp(AluCode)) in printMemoryBaseRegister()
216 if (LPAC::isPostOp(AluCode)) in printMemoryBaseRegister()
238 const unsigned AluCode = AluOp.getImm(); in printMemRiOperand() local
[all …]
H A DLanaiMCCodeEmitter.cpp137 unsigned AluCode = AluOp.getImm(); in adjustPqBits() local
143 if (!LPAC::isPostOp(AluCode) && in adjustPqBits()
152 if (LPAC::modifiesOp(AluCode) && ((Op2.isImm() && Op2.getImm() != 0) || in adjustPqBits()
/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/AsmParser/
H A DLanaiAsmParser.cpp814 static unsigned AluWithPrePost(unsigned AluCode, bool PreOp, bool PostOp) { in AluWithPrePost() argument
816 return LPAC::makePreOp(AluCode); in AluWithPrePost()
818 return LPAC::makePostOp(AluCode); in AluWithPrePost()
819 return AluCode; in AluWithPrePost()
825 unsigned AluCode = LPAC::stringToLanaiAluCode(IdString); in parseAluOperator() local
826 if (AluCode == LPAC::UNKNOWN) { in parseAluOperator()
830 return AluCode; in parseAluOperator()