Home
last modified time | relevance | path

Searched refs:Insn (Results 1 – 25 of 59) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/Disassembler/
H A DXCoreDisassembler.cpp45 uint64_t &Size, uint16_t &Insn) { in readInstruction16() argument
52 Insn = (Bytes[0] << 0) | (Bytes[1] << 8); in readInstruction16()
57 uint64_t &Size, uint32_t &Insn) { in readInstruction32() argument
64 Insn = in readInstruction32()
90 static DecodeStatus Decode2RInstruction(MCInst &Inst, unsigned Insn,
94 static DecodeStatus Decode2RImmInstruction(MCInst &Inst, unsigned Insn,
98 static DecodeStatus DecodeR2RInstruction(MCInst &Inst, unsigned Insn,
102 static DecodeStatus Decode2RSrcDstInstruction(MCInst &Inst, unsigned Insn,
106 static DecodeStatus DecodeRUSInstruction(MCInst &Inst, unsigned Insn,
110 static DecodeStatus DecodeRUSBitpInstruction(MCInst &Inst, unsigned Insn,
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/Disassembler/
H A DAVRDisassembler.cpp92 static DecodeStatus decodeFIOARr(MCInst &Inst, unsigned Insn, uint64_t Address,
95 static DecodeStatus decodeFIORdA(MCInst &Inst, unsigned Insn, uint64_t Address,
98 static DecodeStatus decodeFIOBIT(MCInst &Inst, unsigned Insn, uint64_t Address,
101 static DecodeStatus decodeCallTarget(MCInst &Inst, unsigned Insn,
105 static DecodeStatus decodeFRd(MCInst &Inst, unsigned Insn, uint64_t Address,
108 static DecodeStatus decodeFLPMX(MCInst &Inst, unsigned Insn, uint64_t Address,
111 static DecodeStatus decodeFFMULRdRr(MCInst &Inst, unsigned Insn,
115 static DecodeStatus decodeFMOVWRdRr(MCInst &Inst, unsigned Insn,
119 static DecodeStatus decodeFWRdK(MCInst &Inst, unsigned Insn, uint64_t Address,
122 static DecodeStatus decodeFMUL2RdRr(MCInst &Inst, unsigned Insn,
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARC/Disassembler/
H A DARCDisassembler.cpp51 uint64_t &Size, uint32_t &Insn) { in readInstruction32() argument
54 Insn = in readInstruction32()
60 uint64_t &Size, uint64_t &Insn) { in readInstruction64() argument
62 Insn = ((uint64_t)Bytes[0] << 16) | ((uint64_t)Bytes[1] << 24) | in readInstruction64()
70 uint64_t &Size, uint64_t &Insn) { in readInstruction48() argument
72 Insn = ((uint64_t)Bytes[0] << 0) | ((uint64_t)Bytes[1] << 8) | in readInstruction48()
79 uint64_t &Size, uint32_t &Insn) { in readInstruction16() argument
81 Insn = (Bytes[0] << 0) | (Bytes[1] << 8); in readInstruction16()
156 static unsigned decodeCField(unsigned Insn) { in decodeCField() argument
157 return fieldFromInstruction(Insn, 6, 6); in decodeCField()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/Disassembler/
H A DARMDisassembler.cpp278 static DecodeStatus DecodeBitfieldMaskOperand(MCInst &Inst, unsigned Insn,
281 static DecodeStatus DecodeCopMemInstruction(MCInst &Inst, unsigned Insn,
285 DecodeAddrMode2IdxInstruction(MCInst &Inst, unsigned Insn, uint64_t Address,
287 static DecodeStatus DecodeSORegMemOperand(MCInst &Inst, unsigned Insn,
290 static DecodeStatus DecodeAddrMode3Instruction(MCInst &Inst, unsigned Insn,
293 static DecodeStatus DecodeTSBInstruction(MCInst &Inst, unsigned Insn,
296 static DecodeStatus DecodeSORegImmOperand(MCInst &Inst, unsigned Insn,
299 static DecodeStatus DecodeSORegRegOperand(MCInst &Inst, unsigned Insn,
304 DecodeMemMultipleWritebackInstruction(MCInst &Inst, unsigned Insn,
307 static DecodeStatus DecodeT2MOVTWInstruction(MCInst &Inst, unsigned Insn,
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/Disassembler/
H A DLanaiDisassembler.cpp50 static DecodeStatus decodeRiMemoryValue(MCInst &Inst, unsigned Insn,
54 static DecodeStatus decodeRrMemoryValue(MCInst &Inst, unsigned Insn,
58 static DecodeStatus decodeSplsValue(MCInst &Inst, unsigned Insn,
62 static DecodeStatus decodeBranch(MCInst &Inst, unsigned Insn, uint64_t Address,
69 static DecodeStatus decodeShiftImm(MCInst &Inst, unsigned Insn,
76 uint32_t &Insn) { in readInstruction32() argument
84 Insn = in readInstruction32()
90 static void PostOperandDecodeAdjust(MCInst &Instr, uint32_t Insn) { in PostOperandDecodeAdjust() argument
101 AluOp = (Insn >> 8) & 0x7; in PostOperandDecodeAdjust()
105 AluOp |= 0x20 | (((Insn >> 3) & 0xf) << 1); in PostOperandDecodeAdjust()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/Disassembler/
H A DMipsDisassembler.cpp106 static DecodeStatus DecodePtrRegisterClass(MCInst &Inst, unsigned Insn,
134 static DecodeStatus DecodeHWRegsRegisterClass(MCInst &Inst, unsigned Insn,
190 static DecodeStatus DecodeJumpTarget(MCInst &Inst, unsigned Insn,
232 static DecodeStatus DecodeJumpTargetMM(MCInst &Inst, unsigned Insn,
238 static DecodeStatus DecodeJumpTargetXMM(MCInst &Inst, unsigned Insn,
242 static DecodeStatus DecodeMem(MCInst &Inst, unsigned Insn, uint64_t Address,
245 static DecodeStatus DecodeMemEVA(MCInst &Inst, unsigned Insn, uint64_t Address,
248 static DecodeStatus DecodeLoadByte15(MCInst &Inst, unsigned Insn,
252 static DecodeStatus DecodeCacheOp(MCInst &Inst, unsigned Insn, uint64_t Address,
255 static DecodeStatus DecodeCacheeOp_CacheOpR6(MCInst &Inst, unsigned Insn,
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ExpandImm.cpp44 SmallVectorImpl<ImmInsnModel> &Insn) { in tryToreplicateChunks() argument
67 Insn.push_back({ AArch64::ORRXri, 0, Encoding }); in tryToreplicateChunks()
80 Insn.push_back({ AArch64::MOVKXi, Imm16, in tryToreplicateChunks()
95 Insn.push_back({ AArch64::MOVKXi, Imm16, in tryToreplicateChunks()
151 SmallVectorImpl<ImmInsnModel> &Insn) { in trySequenceOfOnes() argument
223 Insn.push_back({ AArch64::ORRXri, 0, Encoding }); in trySequenceOfOnes()
226 Insn.push_back({ AArch64::MOVKXi, getChunk(UImm, FirstMovkIdx), in trySequenceOfOnes()
235 Insn.push_back({ AArch64::MOVKXi, getChunk(UImm, SecondMovkIdx), in trySequenceOfOnes()
317 SmallVectorImpl<ImmInsnModel> &Insn) { in tryOrrOfLogicalImmediates() argument
330 Insn.push_back({AArch64::ORRXri, 0, Encoding1}); in tryOrrOfLogicalImmediates()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFPreserveStaticOffset.cpp210 GEPChainInfo &GEP, T *Insn) { in fillCommonArgs() argument
214 unsigned AlignShiftValue = Log2_64(Insn->getAlign().value()); in fillCommonArgs()
216 Args.push_back(ConstantInt::get(Int1Ty, Insn->isVolatile())); in fillCommonArgs()
217 Args.push_back(ConstantInt::get(Int8Ty, (unsigned)Insn->getOrdering())); in fillCommonArgs()
218 Args.push_back(ConstantInt::get(Int8Ty, (unsigned)Insn->getSyncScopeID())); in fillCommonArgs()
291 static void reconstructCommon(CallInst *Call, GetElementPtrInst *GEP, T *Insn, in reconstructCommon() argument
293 Insn->setVolatile(getOperandAsUnsigned(Call, 1 + Delta)); in reconstructCommon()
294 Insn->setOrdering((AtomicOrdering)getOperandAsUnsigned(Call, 2 + Delta)); in reconstructCommon()
295 Insn->setSyncScopeID(getOperandAsUnsigned(Call, 3 + Delta)); in reconstructCommon()
297 Insn->setAlignment(Align(1ULL << AlignShiftValue)); in reconstructCommon()
[all …]
/freebsd/sbin/ipfw/tests/
H A Dtest_add_rule.py29 from atf_python.sys.netpfil.ipfw.insns import Insn
185 Insn(IpFwOpcode.O_EXTERNAL_ACTION, arg1=1),
186 Insn(IpFwOpcode.O_EXTERNAL_DATA, arg1=123),
202 Insn(IpFwOpcode.O_EXTERNAL_ACTION, arg1=1),
203 Insn(IpFwOpcode.O_EXTERNAL_INSTANCE, arg1=2),
215 Insn(IpFwOpcode.O_COUNT),
230 Insn(IpFwOpcode.O_CHECK_STATE, arg1=1),
244 Insn(IpFwOpcode.O_PROBE_STATE, arg1=1),
245 Insn(IpFwOpcode.O_PROTO, arg1=6),
246 Insn(IpFwOpcode.O_KEEP_STATE, arg1=1),
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/Disassembler/
H A DMSP430Disassembler.cpp181 static AddrMode DecodeSrcAddrModeI(unsigned Insn) { in DecodeSrcAddrModeI() argument
182 unsigned Rs = fieldFromInstruction(Insn, 8, 4); in DecodeSrcAddrModeI()
183 unsigned As = fieldFromInstruction(Insn, 4, 2); in DecodeSrcAddrModeI()
187 static AddrMode DecodeSrcAddrModeII(unsigned Insn) { in DecodeSrcAddrModeII() argument
188 unsigned Rs = fieldFromInstruction(Insn, 0, 4); in DecodeSrcAddrModeII()
189 unsigned As = fieldFromInstruction(Insn, 4, 2); in DecodeSrcAddrModeII()
193 static AddrMode DecodeDstAddrMode(unsigned Insn) { in DecodeDstAddrMode() argument
194 unsigned Rd = fieldFromInstruction(Insn, 0, 4); in DecodeDstAddrMode()
195 unsigned Ad = fieldFromInstruction(Insn, 7, 1); in DecodeDstAddrMode()
233 uint64_t Insn = support::endian::read16le(Bytes.data()); in getInstructionI() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionPrecedenceTracking.cpp63 const Instruction *Insn) { in isPreceededBySpecialInstruction() argument
65 getFirstSpecialInstruction(Insn->getParent()); in isPreceededBySpecialInstruction()
66 return MaybeFirstSpecial && MaybeFirstSpecial->comesBefore(Insn); in isPreceededBySpecialInstruction()
90 for (const Instruction &Insn : *BB) in validate()
91 if (isSpecialInstruction(&Insn)) { in validate()
92 assert(It->second == &Insn && in validate()
138 const Instruction *Insn) const { in isSpecialInstruction()
144 return !isGuaranteedToTransferExecutionToSuccessor(Insn); in isSpecialInstruction()
148 const Instruction *Insn) const { in isSpecialInstruction()
150 if (match(Insn, m_Intrinsic<Intrinsic::experimental_widenable_condition>())) in isSpecialInstruction()
[all …]
H A DGuardUtils.cpp40 for (auto &Insn : *DeoptBB) { in isGuardAsWidenableBranch()
41 if (match(&Insn, m_Intrinsic<Intrinsic::experimental_deoptimize>())) in isGuardAsWidenableBranch()
43 if (Insn.mayHaveSideEffects()) in isGuardAsWidenableBranch()
/freebsd/contrib/llvm-project/llvm/utils/TableGen/
H A DPseudoLoweringEmitter.cpp55 CodeGenInstruction &Insn,
74 Record *Rec, DagInit *Dag, CodeGenInstruction &Insn, in addDagOperandMapping() argument
94 if (DI->getDef() != Insn.Operands[BaseIdx + i].Rec) { in addDagOperandMapping()
98 Insn.Operands[BaseIdx + i].Rec->getName() + "'"); in addDagOperandMapping()
105 for (unsigned I = 0, E = Insn.Operands[i].MINumOperands; I != E; ++I) in addDagOperandMapping()
107 OpsAdded += Insn.Operands[i].MINumOperands; in addDagOperandMapping()
122 addDagOperandMapping(Rec, SubDag, Insn, OperandMap, BaseIdx + i); in addDagOperandMapping()
157 CodeGenInstruction Insn(Operator); in evaluateExpansion() local
159 if (Insn.isCodeGenOnly || Insn.isPseudo) { in evaluateExpansion()
167 if (Insn.Operands.size() != Dag->getNumArgs()) { in evaluateExpansion()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DInstructionPrecedenceTracking.h62 bool isPreceededBySpecialInstruction(const Instruction *Insn);
69 virtual bool isSpecialInstruction(const Instruction *Insn) const = 0;
114 bool isDominatedByICFIFromSameBlock(const Instruction *Insn) { in isDominatedByICFIFromSameBlock() argument
115 return isPreceededBySpecialInstruction(Insn); in isDominatedByICFIFromSameBlock()
118 bool isSpecialInstruction(const Instruction *Insn) const override;
137 bool isDominatedByMemoryWriteFromSameBlock(const Instruction *Insn) { in isDominatedByMemoryWriteFromSameBlock() argument
138 return isPreceededBySpecialInstruction(Insn); in isDominatedByMemoryWriteFromSameBlock()
141 bool isSpecialInstruction(const Instruction *Insn) const override;
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/Disassembler/
H A DRISCVDisassembler.cpp347 static DecodeStatus decodeRVCInstrRdRs1ImmZero(MCInst &Inst, uint32_t Insn,
351 static DecodeStatus decodeRVCInstrRdSImm(MCInst &Inst, uint32_t Insn,
355 static DecodeStatus decodeRVCInstrRdRs1UImm(MCInst &Inst, uint32_t Insn,
359 static DecodeStatus decodeRVCInstrRdRs2(MCInst &Inst, uint32_t Insn,
363 static DecodeStatus decodeRVCInstrRdRs1Rs2(MCInst &Inst, uint32_t Insn,
367 static DecodeStatus decodeXTHeadMemPair(MCInst &Inst, uint32_t Insn,
374 static DecodeStatus decodeRegReg(MCInst &Inst, uint32_t Insn, uint64_t Address,
380 static DecodeStatus decodeCSSPushPopchk(MCInst &Inst, uint32_t Insn,
386 static DecodeStatus decodeRVCInstrRdRs1ImmZero(MCInst &Inst, uint32_t Insn, in decodeRVCInstrRdRs1ImmZero() argument
389 uint32_t Rd = fieldFromInstruction(Insn, 7, 5); in decodeRVCInstrRdRs1ImmZero()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/Disassembler/
H A DBPFDisassembler.cpp126 static DecodeStatus decodeMemoryOpValue(MCInst &Inst, unsigned Insn,
129 unsigned Register = (Insn >> 16) & 0xf; in decodeMemoryOpValue()
134 unsigned Offset = (Insn & 0xffff); in decodeMemoryOpValue()
142 uint64_t &Size, uint64_t &Insn, in readInstruction64()
160 Insn = Make_64(Hi, Lo); in readInstruction64()
170 uint64_t Insn, Hi; in getInstruction()
173 Result = readInstruction64(Bytes, Address, Size, Insn, IsLittleEndian); in getInstruction()
176 uint8_t InstClass = getInstClass(Insn); in getInstruction()
177 uint8_t InstMode = getInstMode(Insn); in getInstruction()
179 getInstSize(Insn) ! in getInstruction()
127 decodeMemoryOpValue(MCInst & Inst,unsigned Insn,uint64_t Address,const MCDisassembler * Decoder) decodeMemoryOpValue() argument
143 readInstruction64(ArrayRef<uint8_t> Bytes,uint64_t Address,uint64_t & Size,uint64_t & Insn,bool IsLittleEndian) readInstruction64() argument
171 uint64_t Insn, Hi; getInstruction() local
[all...]
/freebsd/tests/atf_python/sys/netpfil/ipfw/
H A Dinsns.py186 class Insn(BaseInsn): class
207 class InsnUnknown(Insn):
225 class InsnEmpty(Insn):
237 class InsnComment(Insn):
276 class InsnProto(Insn):
289 class InsnU32(Insn):
356 class InsnTable(Insn):
385 class InsnReject(Insn):
421 class InsnPorts(Insn):
471 class InsnIp6(Insn):
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldELFMips.cpp215 uint32_t Insn = readBytesUnaligned(TargetPtr, 4); in applyMIPSRelocation() local
233 Insn = (Insn & 0xffff0000) | (Value & 0x0000ffff); in applyMIPSRelocation()
234 writeBytesUnaligned(Insn, TargetPtr, 4); in applyMIPSRelocation()
237 Insn = (Insn & 0xfffc0000) | (Value & 0x0003ffff); in applyMIPSRelocation()
238 writeBytesUnaligned(Insn, TargetPtr, 4); in applyMIPSRelocation()
241 Insn = (Insn & 0xfff80000) | (Value & 0x0007ffff); in applyMIPSRelocation()
242 writeBytesUnaligned(Insn, TargetPtr, 4); in applyMIPSRelocation()
245 Insn = (Insn & 0xffe00000) | (Value & 0x001fffff); in applyMIPSRelocation()
246 writeBytesUnaligned(Insn, TargetPtr, 4); in applyMIPSRelocation()
250 Insn = (Insn & 0xfc000000) | (Value & 0x03ffffff); in applyMIPSRelocation()
[all …]
H A DRuntimeDyldMachOARM.h271 uint32_t Insn = readBytesUnaligned(LocalAddress, 4); in resolveRelocation() local
274 Insn = (Insn & 0x8f00fbf0) | ((Value & 0xf000) >> 12) | in resolveRelocation()
278 Insn = (Insn & 0xfff0f000) | ((Value & 0xf000) << 4) | (Value & 0x0fff); in resolveRelocation()
279 writeBytesUnaligned(Insn, LocalAddress, 4); in resolveRelocation()
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/Disassembler/
H A DM68kDisassembler.cpp108 static DecodeStatus DecodeCCRCRegisterClass(MCInst &Inst, APInt &Insn, in DecodeImm32()
143 auto MakeUp = [&](APInt &Insn, unsigned InstrBits) { in getInstruction()
144 unsigned Idx = Insn.getBitWidth() >> 3; in getInstruction() local
146 if (RoundUp > Insn.getBitWidth()) in getInstruction()
147 Insn = Insn.zext(RoundUp); in getInstruction()
150 Insn.insertBits(support::endian::read16be(&Bytes[Idx]), Idx * 8, 16); in getInstruction()
153 APInt Insn(16, support::endian::read16be(Bytes.data())); in getInstruction()
158 Result = decodeInstruction(DecoderTable80, Instr, Insn, Address, this, STI, in createM68kDisassembler()
100 DecodeCCRCRegisterClass(MCInst & Inst,APInt & Insn,uint64_t Address,const void * Decoder) DecodeCCRCRegisterClass() argument
134 __anona2e1beac0102(APInt &Insn, unsigned InstrBits) getInstruction() argument
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/Disassembler/
H A DX86Disassembler.cpp1868 InternalInstruction Insn; in getInstruction() local
1869 memset(&Insn, 0, sizeof(InternalInstruction)); in getInstruction()
1870 Insn.bytes = Bytes; in getInstruction()
1871 Insn.startLocation = Address; in getInstruction()
1872 Insn.readerCursor = Address; in getInstruction()
1873 Insn.mode = fMode; in getInstruction()
1875 if (Bytes.empty() || readPrefixes(&Insn) || readOpcode(&Insn) || in getInstruction()
1876 getInstructionID(&Insn, MII.get()) || Insn.instructionID == 0 || in getInstruction()
1877 readOperands(&Insn)) { in getInstruction()
1878 Size = Insn.readerCursor - Address; in getInstruction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/Disassembler/
H A DSparcDisassembler.cpp271 uint64_t &Size, uint32_t &Insn,
279 Insn = IsLittleEndian in readInstruction32()
292 uint32_t Insn; in getInstruction()
295 readInstruction32(Bytes, Address, Size, Insn, isLittleEndian); in getInstruction()
303 Result = decodeInstruction(DecoderTableSparcV932, Instr, Insn, Address, this, STI); in getInstruction()
307 Result = decodeInstruction(DecoderTableSparcV832, Instr, Insn, Address, this, STI); in getInstruction()
315 decodeInstruction(DecoderTableSparc32, Instr, Insn, Address, this, STI); in getInstruction()
275 readInstruction32(ArrayRef<uint8_t> Bytes,uint64_t Address,uint64_t & Size,uint32_t & Insn,bool IsLittleEndian) readInstruction32() argument
296 uint32_t Insn; getInstruction() local
/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/Disassembler/
H A DXtensaDisassembler.cpp248 uint64_t &Size, uint32_t &Insn, in readInstruction24() argument
259 Insn = (Bytes[2] << 16) | (Bytes[1] << 8) | (Bytes[0] << 0); in readInstruction24()
272 uint32_t Insn; in getInstruction() local
275 Result = readInstruction24(Bytes, Address, Size, Insn, IsLittleEndian); in getInstruction()
279 Result = decodeInstruction(DecoderTable24, MI, Insn, Address, this, STI); in getInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/Disassembler/
H A DLoongArchDisassembler.cpp156 uint32_t Insn; in getInstruction() local
166 Insn = support::endian::read32le(Bytes.data()); in getInstruction()
168 Result = decodeInstruction(DecoderTable32, MI, Insn, Address, this, STI); in getInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/Disassembler/
H A DCSKYDisassembler.cpp520 uint32_t Insn; in getInstruction() local
523 Insn = support::endian::read16le(Bytes.data()); in getInstruction()
525 if ((Insn >> 14) == 0x3) { in getInstruction()
530 Insn = (Insn << 16) | support::endian::read16le(&Bytes[2]); in getInstruction()
532 if (decodeFPUV3Instruction(MI, Insn, Address, this, STI)) in getInstruction()
536 Result = decodeInstruction(DecoderTable32, MI, Insn, Address, this, STI); in getInstruction()
546 Result = decodeInstruction(DecoderTable16, MI, Insn, Address, this, STI); in getInstruction()

123