Home
last modified time | relevance | path

Searched refs:AluOp (Results 1 – 8 of 8) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Target/Lanai/
H A DLanaiAluCode.h50 return AluOp & OP_ENCODING_MASK; in encodeLanaiAluCode()
53 inline static unsigned getAluOp(unsigned AluOp) { in getAluOp() argument
55 return AluOp & ALU_MASK; in getAluOp()
58 inline static bool isPreOp(unsigned AluOp) { return AluOp & Lanai_PRE_OP; } in isPreOp() argument
60 inline static bool isPostOp(unsigned AluOp) { return AluOp & Lanai_POST_OP; } in isPostOp() argument
62 inline static unsigned makePreOp(unsigned AluOp) { in makePreOp() argument
64 return AluOp | Lanai_PRE_OP; in makePreOp()
69 return AluOp | Lanai_POST_OP; in makePostOp()
72 inline static bool modifiesOp(unsigned AluOp) { in modifiesOp() argument
73 return isPreOp(AluOp) || isPostOp(AluOp); in modifiesOp()
[all …]
H A DLanaiISelDAGToDAG.cpp78 SDValue &AluOp);
82 SDValue &AluOp);
91 SDValue &AluOp, bool RiMode);
158 AluOp = CurDAG->getTargetConstant(LPAC::ADD, DL, MVT::i32); in selectAddrRiSpls()
170 AluOp = CurDAG->getTargetConstant(LPAC::ADD, DL, MVT::i32); in selectAddrRiSpls()
197 AluOp = CurDAG->getTargetConstant(LPAC::ADD, DL, MVT::i32); in selectAddrRiSpls()
212 SDValue &AluOp) { in selectAddrRr() argument
253 SDValue Op0, Op1, AluOp; in SelectInlineAsmMemoryOperand() local
258 if (!selectAddrRr(Op, Op0, Op1, AluOp) && in SelectInlineAsmMemoryOperand()
259 !selectAddrRi(Op, Op0, Op1, AluOp)) in SelectInlineAsmMemoryOperand()
[all …]
H A DLanaiInstrInfo.td174 def AluOp : Operand<i32> {
192 let MIOperandInfo = (ops GPR:$base, i32lo16s:$offset, AluOp:$Opcode);
204 let MIOperandInfo = (ops GPR:$Op1, GPR:$Op2, AluOp:$Opcode);
226 let MIOperandInfo = (ops GPR:$base, imm10:$offset, AluOp:$Opcode);
/llvm-project-15.0.7/llvm/lib/Target/Lanai/MCTargetDesc/
H A DLanaiMCCodeEmitter.cpp137 const MCOperand AluOp = Inst.getOperand(3); in adjustPqBits() local
138 unsigned AluCode = AluOp.getImm(); in adjustPqBits()
206 if (LPAC::isPreOp(AluOp.getImm())) in getRiMemoryOpValue()
208 if (LPAC::isPostOp(AluOp.getImm())) in getRiMemoryOpValue()
232 unsigned AluOp = AluMCOp.getImm(); in getRrMemoryOpValue() local
233 Encoding |= LPAC::encodeLanaiAluCode(AluOp) << 5; in getRrMemoryOpValue()
235 if (LPAC::isPreOp(AluOp)) in getRrMemoryOpValue()
237 if (LPAC::isPostOp(AluOp)) in getRrMemoryOpValue()
240 switch (LPAC::getAluOp(AluOp)) { in getRrMemoryOpValue()
277 if (LPAC::isPreOp(AluOp.getImm())) in getSplsOpValue()
[all …]
H A DLanaiInstPrinter.cpp242 const MCOperand &AluOp = MI->getOperand(OpNo + 2); in printMemRiOperand() local
243 const unsigned AluCode = AluOp.getImm(); in printMemRiOperand()
257 const MCOperand &AluOp = MI->getOperand(OpNo + 2); in printMemRrOperand() local
258 const unsigned AluCode = AluOp.getImm(); in printMemRrOperand()
278 const MCOperand &AluOp = MI->getOperand(OpNo + 2); in printMemSplsOperand() local
279 const unsigned AluCode = AluOp.getImm(); in printMemSplsOperand()
/llvm-project-15.0.7/llvm/lib/Target/Lanai/Disassembler/
H A DLanaiDisassembler.cpp91 unsigned AluOp = LPAC::ADD; in PostOperandDecodeAdjust() local
101 AluOp = (Insn >> 8) & 0x7; in PostOperandDecodeAdjust()
102 if (AluOp == 7) in PostOperandDecodeAdjust()
105 AluOp |= 0x20 | (((Insn >> 3) & 0xf) << 1); in PostOperandDecodeAdjust()
119 AluOp = LPAC::makePostOp(AluOp); in PostOperandDecodeAdjust()
124 AluOp = LPAC::makePreOp(AluOp); in PostOperandDecodeAdjust()
127 Instr.addOperand(MCOperand::createImm(AluOp)); in PostOperandDecodeAdjust()
/llvm-project-15.0.7/llvm/lib/Target/Lanai/AsmParser/
H A DLanaiAsmParser.cpp133 unsigned AluOp; member
188 return Mem.AluOp; in getMemOp()
617 Op->Mem.AluOp = LPAC::ADD; in MorphToMemImm()
625 unsigned AluOp) { in MorphToMemRegReg()
629 Op->Mem.AluOp = AluOp; in MorphToMemRegReg()
637 unsigned AluOp) { in MorphToMemRegImm()
641 Op->Mem.AluOp = AluOp; in MorphToMemRegImm()
910 unsigned AluOp = LPAC::ADD; in parseMemoryOperand() local
990 AluOp = parseAluOperator(PreOp, PostOp); in parseMemoryOperand()
1003 AluOp = AluWithPrePost(AluOp, PreOp, PostOp); in parseMemoryOperand()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/BPF/
H A DBPFISelDAGToDAG.cpp170 SDValue AluOp = CurDAG->getTargetConstant(ISD::ADD, DL, MVT::i32);; in SelectInlineAsmMemoryOperand() local
173 OutOps.push_back(AluOp); in SelectInlineAsmMemoryOperand()