Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Lanai/
H A DLanaiAluCode.h48 inline static unsigned encodeLanaiAluCode(unsigned AluOp) { in encodeLanaiAluCode() argument
50 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
63 assert(!isPostOp(AluOp) && "Operator can't be a post- and pre-op"); in makePreOp()
64 return AluOp | Lanai_PRE_OP; in makePreOp()
67 inline static unsigned makePostOp(unsigned AluOp) { in makePostOp() argument
[all …]
H A DLanaiISelDAGToDAG.cpp78 SDValue &AluOp);
79 bool selectAddrRr(SDValue Addr, SDValue &R1, SDValue &R2, SDValue &AluOp);
82 SDValue &AluOp);
91 SDValue &AluOp, bool RiMode);
122 SDValue &Offset, SDValue &AluOp, in selectAddrRiSpls() argument
133 AluOp = CurDAG->getTargetConstant(LPAC::ADD, DL, MVT::i32); in selectAddrRiSpls()
146 AluOp = CurDAG->getTargetConstant(LPAC::ADD, DL, MVT::i32); in selectAddrRiSpls()
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()
[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);
/netbsd-src/external/apache2/llvm/dist/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()
191 const MCOperand AluOp = Inst.getOperand(OpNo + 2); in getRiMemoryOpValue() local
196 assert((LPAC::getAluOp(AluOp.getImm()) == LPAC::ADD) && in getRiMemoryOpValue()
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()
[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()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/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 …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/BPF/
H A DBPFISelDAGToDAG.cpp173 SDValue AluOp = CurDAG->getTargetConstant(ISD::ADD, DL, MVT::i32);; in SelectInlineAsmMemoryOperand() local
176 OutOps.push_back(AluOp); in SelectInlineAsmMemoryOperand()