Home
last modified time | relevance | path

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

/src/contrib/llvm-project/llvm/lib/Target/Lanai/MCTargetDesc/
H A DLanaiInstPrinter.cpp49 unsigned AluCode = MI->getOperand(3).getImm(); in usesGivenOffset() local
50 return LPAC::encodeLanaiAluCode(AluCode) == LPAC::ADD && in usesGivenOffset()
56 unsigned AluCode = MI->getOperand(3).getImm(); in isPreIncrementForm() local
57 return LPAC::isPreOp(AluCode) && usesGivenOffset(MI, AddOffset); in isPreIncrementForm()
61 unsigned AluCode = MI->getOperand(3).getImm(); in isPostIncrementForm() local
62 return LPAC::isPostOp(AluCode) && usesGivenOffset(MI, AddOffset); in isPostIncrementForm()
213 static void printMemoryBaseRegister(raw_ostream &OS, const unsigned AluCode, in printMemoryBaseRegister() argument
217 if (LPAC::isPreOp(AluCode)) in printMemoryBaseRegister()
220 if (LPAC::isPostOp(AluCode)) in printMemoryBaseRegister()
243 const unsigned AluCode = AluOp.getImm(); in printMemRiOperand() local
[all …]
H A DLanaiMCCodeEmitter.cpp139 unsigned AluCode = AluOp.getImm(); in adjustPqBits() local
145 if (!LPAC::isPostOp(AluCode) && in adjustPqBits()
154 if (LPAC::modifiesOp(AluCode) && ((Op2.isImm() && Op2.getImm() != 0) || in adjustPqBits()
/src/contrib/llvm-project/llvm/lib/Target/Lanai/
H A DLanaiISelDAGToDAG.cpp219 static AluCode isdToLanaiAluCode(ISD::NodeType Node_type) { in isdToLanaiAluCode()
222 return AluCode::ADD; in isdToLanaiAluCode()
224 return AluCode::ADDC; in isdToLanaiAluCode()
226 return AluCode::SUB; in isdToLanaiAluCode()
228 return AluCode::SUBB; in isdToLanaiAluCode()
230 return AluCode::AND; in isdToLanaiAluCode()
232 return AluCode::OR; in isdToLanaiAluCode()
234 return AluCode::XOR; in isdToLanaiAluCode()
236 return AluCode::SHL; in isdToLanaiAluCode()
238 return AluCode::SRL; in isdToLanaiAluCode()
[all …]
H A DLanaiAluCode.h21 enum AluCode { enum
102 inline static AluCode stringToLanaiAluCode(StringRef S) { in stringToLanaiAluCode()
103 return StringSwitch<AluCode>(S) in stringToLanaiAluCode()
H A DLanaiMemAluCombiner.cpp201 LPAC::AluCode mergedAluCode(unsigned AluOpcode) { in mergedAluCode()
250 LPAC::AluCode AluOpcode = mergedAluCode(AluInstr->getOpcode()); in insertMergedInstruction()
375 LPAC::AluCode AluOpcode = static_cast<LPAC::AluCode>(AluOperand.getImm()); in combineMemAluInBasicBlock()
/src/contrib/llvm-project/llvm/lib/Target/Lanai/AsmParser/
H A DLanaiAsmParser.cpp816 static unsigned AluWithPrePost(unsigned AluCode, bool PreOp, bool PostOp) { in AluWithPrePost() argument
818 return LPAC::makePreOp(AluCode); in AluWithPrePost()
820 return LPAC::makePostOp(AluCode); in AluWithPrePost()
821 return AluCode; in AluWithPrePost()
827 unsigned AluCode = LPAC::stringToLanaiAluCode(IdString); in parseAluOperator() local
828 if (AluCode == LPAC::UNKNOWN) { in parseAluOperator()
832 return AluCode; in parseAluOperator()