Home
last modified time | relevance | path

Searched refs:TargetOpcode (Results 1 – 25 of 256) sorted by relevance

1234567891011

/openbsd-src/gnu/llvm/llvm/lib/Target/PowerPC/GISel/
H A DPPCRegisterBankInfo.cpp65 if (!isPreISelGenericOpcode(Opc) || Opc == TargetOpcode::G_PHI) { in getInstrMapping()
84 case TargetOpcode::G_ADD: in getInstrMapping()
85 case TargetOpcode::G_SUB: in getInstrMapping()
87 case TargetOpcode::G_AND: in getInstrMapping()
88 case TargetOpcode::G_OR: in getInstrMapping()
89 case TargetOpcode::G_XOR: in getInstrMapping()
91 case TargetOpcode::G_SEXT: in getInstrMapping()
92 case TargetOpcode::G_ZEXT: in getInstrMapping()
93 case TargetOpcode::G_ANYEXT: in getInstrMapping()
98 case TargetOpcode::G_FADD: in getInstrMapping()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/GISel/
H A DAArch64RegisterBankInfo.cpp296 case TargetOpcode::G_OR: { in getInstrAlternativeMappings()
319 case TargetOpcode::G_BITCAST: { in getInstrAlternativeMappings()
355 case TargetOpcode::G_LOAD: { in getInstrAlternativeMappings()
392 case TargetOpcode::G_OR: in applyMappingImpl()
393 case TargetOpcode::G_BITCAST: in applyMappingImpl()
394 case TargetOpcode::G_LOAD: in applyMappingImpl()
409 case TargetOpcode::G_FADD: in isPreISelGenericFloatingPointOpcode()
410 case TargetOpcode::G_FSUB: in isPreISelGenericFloatingPointOpcode()
411 case TargetOpcode::G_FMUL: in isPreISelGenericFloatingPointOpcode()
412 case TargetOpcode::G_FMA: in isPreISelGenericFloatingPointOpcode()
[all …]
H A DAArch64InstructionSelector.cpp651 MIB.buildInstr(TargetOpcode::REG_SEQUENCE, {DesiredClass}, {}); in createTuple()
756 case TargetOpcode::G_SHL: in selectBinaryOp()
758 case TargetOpcode::G_LSHR: in selectBinaryOp()
760 case TargetOpcode::G_ASHR: in selectBinaryOp()
767 case TargetOpcode::G_PTR_ADD: in selectBinaryOp()
769 case TargetOpcode::G_SHL: in selectBinaryOp()
771 case TargetOpcode::G_LSHR: in selectBinaryOp()
773 case TargetOpcode::G_ASHR: in selectBinaryOp()
784 case TargetOpcode::G_FADD: in selectBinaryOp()
786 case TargetOpcode::G_FSUB: in selectBinaryOp()
[all …]
H A DAArch64PreLegalizerCombiner.cpp40 assert(MI.getOpcode() == TargetOpcode::G_FCONSTANT); in matchFConstantToConstant()
55 assert(MI.getOpcode() == TargetOpcode::G_FCONSTANT); in applyFConstantToConstant()
67 assert(MI.getOpcode() == TargetOpcode::G_ICMP && KB); in matchICmpRedundantTrunc()
98 assert(MI.getOpcode() == TargetOpcode::G_ICMP); in applyICmpRedundantTrunc()
119 assert(MI.getOpcode() == TargetOpcode::G_GLOBAL_VALUE); in matchFoldGlobalOffset()
148 if (UseInstr.getOpcode() != TargetOpcode::G_PTR_ADD) in matchFoldGlobalOffset()
275 if (Op0WideDef->getOpcode() != TargetOpcode::G_ASSERT_ZEXT || in tryToSimplifyUADDO()
276 Op1WideDef->getOpcode() != TargetOpcode::G_ASSERT_ZEXT || in tryToSimplifyUADDO()
292 if (CondUser->getOpcode() != TargetOpcode::G_BRCOND) in tryToSimplifyUADDO()
313 B.buildInstr(TargetOpcode::G_ADD, {AddDst}, {Op0Wide, Op1Wide}); in tryToSimplifyUADDO()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/GlobalISel/
H A DGISelKnownBits.cpp38 case TargetOpcode::COPY: in computeKnownAlignment()
40 case TargetOpcode::G_ASSERT_ALIGN: { in computeKnownAlignment()
44 case TargetOpcode::G_FRAME_INDEX: { in computeKnownAlignment()
48 case TargetOpcode::G_INTRINSIC: in computeKnownAlignment()
49 case TargetOpcode::G_INTRINSIC_W_SIDE_EFFECTS: in computeKnownAlignment()
183 case TargetOpcode::G_BUILD_VECTOR: { in computeKnownBitsImpl()
202 case TargetOpcode::COPY: in computeKnownBitsImpl()
203 case TargetOpcode::G_PHI: in computeKnownBitsImpl()
204 case TargetOpcode::PHI: { in computeKnownBitsImpl()
237 Depth + (Opcode != TargetOpcode::COPY)); in computeKnownBitsImpl()
[all …]
H A DCSEMIRBuilder.cpp177 case TargetOpcode::G_ADD: in buildInstr()
178 case TargetOpcode::G_PTR_ADD: in buildInstr()
179 case TargetOpcode::G_AND: in buildInstr()
180 case TargetOpcode::G_ASHR: in buildInstr()
181 case TargetOpcode::G_LSHR: in buildInstr()
182 case TargetOpcode::G_MUL: in buildInstr()
183 case TargetOpcode::G_OR: in buildInstr()
184 case TargetOpcode::G_SHL: in buildInstr()
185 case TargetOpcode::G_SUB: in buildInstr()
186 case TargetOpcode::G_XOR: in buildInstr()
[all …]
H A DMachineIRBuilder.cpp58 getTII().get(TargetOpcode::DBG_VALUE), in buildDirectDbgValue()
71 getTII().get(TargetOpcode::DBG_VALUE), in buildIndirectDbgValue()
83 return buildInstr(TargetOpcode::DBG_VALUE) in buildFIDbgValue()
98 auto MIB = buildInstrNoInsert(TargetOpcode::DBG_VALUE); in buildConstDbgValue()
129 auto MIB = buildInstr(TargetOpcode::DBG_LABEL); in buildDbgLabel()
138 auto MIB = buildInstr(TargetOpcode::G_DYN_STACKALLOC); in buildDynStackAlloc()
148 auto MIB = buildInstr(TargetOpcode::G_FRAME_INDEX); in buildFrameIndex()
161 auto MIB = buildInstr(TargetOpcode::G_GLOBAL_VALUE); in buildGlobalValue()
169 return buildInstr(TargetOpcode::G_JUMP_TABLE, {PtrTy}, {}) in buildJumpTable()
197 return buildInstr(TargetOpcode::G_PTR_ADD, {Res}, {Op0, Op1}); in buildPtrAdd()
[all …]
H A DUtils.cpp77 TII.get(TargetOpcode::COPY), ConstrainedReg) in constrainOperandRegClass()
82 TII.get(TargetOpcode::COPY), Reg) in constrainOperandRegClass()
219 if (MI.getOpcode() == TargetOpcode::LOCAL_ESCAPE) in isTriviallyDead()
222 if (MI.getOpcode() == TargetOpcode::LIFETIME_START || in isTriviallyDead()
223 MI.getOpcode() == TargetOpcode::LIFETIME_END) in isTriviallyDead()
322 case TargetOpcode::G_ANYEXT: in getConstantVRegValWithLookThrough()
326 case TargetOpcode::G_TRUNC: in getConstantVRegValWithLookThrough()
327 case TargetOpcode::G_SEXT: in getConstantVRegValWithLookThrough()
328 case TargetOpcode::G_ZEXT: in getConstantVRegValWithLookThrough()
334 case TargetOpcode::COPY: in getConstantVRegValWithLookThrough()
[all …]
H A DLegalizerHelper.cpp120 if (MI.getOpcode() == TargetOpcode::G_INTRINSIC || in legalizeInstrStep()
121 MI.getOpcode() == TargetOpcode::G_INTRINSIC_W_SIDE_EFFECTS) in legalizeInstrStep()
316 assert(MI.getOpcode() == TargetOpcode::G_UNMERGE_VALUES); in getUnmergeResults()
361 if (PadStrategy == TargetOpcode::G_ZEXT) in buildLCMMergePieces()
363 else if (PadStrategy == TargetOpcode::G_ANYEXT) in buildLCMMergePieces()
366 assert(PadStrategy == TargetOpcode::G_SEXT); in buildLCMMergePieces()
408 if (PadStrategy == TargetOpcode::G_ANYEXT) in buildLCMMergePieces()
410 else if (PadStrategy == TargetOpcode::G_ZEXT) in buildLCMMergePieces()
503 case TargetOpcode::G_MUL: in getRTLibDesc()
505 case TargetOpcode::G_SDIV: in getRTLibDesc()
[all …]
H A DCSEInfo.cpp41 case TargetOpcode::G_ADD: in shouldCSEOpc()
42 case TargetOpcode::G_AND: in shouldCSEOpc()
43 case TargetOpcode::G_ASHR: in shouldCSEOpc()
44 case TargetOpcode::G_LSHR: in shouldCSEOpc()
45 case TargetOpcode::G_MUL: in shouldCSEOpc()
46 case TargetOpcode::G_OR: in shouldCSEOpc()
47 case TargetOpcode::G_SHL: in shouldCSEOpc()
48 case TargetOpcode::G_SUB: in shouldCSEOpc()
49 case TargetOpcode::G_XOR: in shouldCSEOpc()
50 case TargetOpcode::G_UDIV: in shouldCSEOpc()
[all …]
H A DCombinerHelper.cpp150 return isLegalOrBeforeLegalizer({TargetOpcode::G_CONSTANT, {Ty}}); in isConstantLegalOrBeforeLegalizer()
155 return isLegal({TargetOpcode::G_BUILD_VECTOR, {Ty, EltTy}}) && in isConstantLegalOrBeforeLegalizer()
156 isLegal({TargetOpcode::G_CONSTANT, {EltTy}}); in isConstantLegalOrBeforeLegalizer()
208 if (MI.getOpcode() != TargetOpcode::COPY) in matchCombineCopy()
233 assert(MI.getOpcode() == TargetOpcode::G_CONCAT_VECTORS && in matchCombineConcatVectors()
246 case TargetOpcode::G_BUILD_VECTOR: in matchCombineConcatVectors()
253 case TargetOpcode::G_IMPLICIT_DEF: { in matchCombineConcatVectors()
309 assert(MI.getOpcode() == TargetOpcode::G_SHUFFLE_VECTOR && in matchCombineShuffleVector()
408 CurrentUse.ExtendOpcode == TargetOpcode::G_ANYEXT) in ChoosePreferredUse()
420 if (OpcodeForCandidate == TargetOpcode::G_ANYEXT && in ChoosePreferredUse()
[all …]
H A DLegacyLegalizerInfo.cpp71 setScalarAction(TargetOpcode::G_ANYEXT, 1, {{1, Legal}}); in LegacyLegalizerInfo()
72 setScalarAction(TargetOpcode::G_ZEXT, 1, {{1, Legal}}); in LegacyLegalizerInfo()
73 setScalarAction(TargetOpcode::G_SEXT, 1, {{1, Legal}}); in LegacyLegalizerInfo()
74 setScalarAction(TargetOpcode::G_TRUNC, 0, {{1, Legal}}); in LegacyLegalizerInfo()
75 setScalarAction(TargetOpcode::G_TRUNC, 1, {{1, Legal}}); in LegacyLegalizerInfo()
77 setScalarAction(TargetOpcode::G_INTRINSIC, 0, {{1, Legal}}); in LegacyLegalizerInfo()
78 setScalarAction(TargetOpcode::G_INTRINSIC_W_SIDE_EFFECTS, 0, {{1, Legal}}); in LegacyLegalizerInfo()
81 TargetOpcode::G_IMPLICIT_DEF, 0, narrowToSmallerAndUnsupportedIfTooSmall); in LegacyLegalizerInfo()
83 TargetOpcode::G_ADD, 0, widenToLargerTypesAndNarrowToLargest); in LegacyLegalizerInfo()
85 TargetOpcode::G_OR, 0, widenToLargerTypesAndNarrowToLargest); in LegacyLegalizerInfo()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/GlobalISel/
H A DGenericMachineInstrs.h67 case TargetOpcode::G_LOAD: in classof()
68 case TargetOpcode::G_STORE: in classof()
69 case TargetOpcode::G_ZEXTLOAD: in classof()
70 case TargetOpcode::G_SEXTLOAD: in classof()
86 case TargetOpcode::G_LOAD: in classof()
87 case TargetOpcode::G_ZEXTLOAD: in classof()
88 case TargetOpcode::G_SEXTLOAD: in classof()
100 return MI->getOpcode() == TargetOpcode::G_LOAD; in classof()
108 return MI->getOpcode() == TargetOpcode::G_SEXTLOAD || in classof()
109 MI->getOpcode() == TargetOpcode::G_ZEXTLOAD; in classof()
[all …]
H A DMIPatternMatch.h379 return TmpMI->getOpcode() == TargetOpcode::G_IMPLICIT_DEF;
450 inline BinaryOp_match<LHS, RHS, TargetOpcode::G_ADD, true>
452 return BinaryOp_match<LHS, RHS, TargetOpcode::G_ADD, true>(L, R);
456 inline BinaryOp_match<LHS, RHS, TargetOpcode::G_BUILD_VECTOR, false>
458 return BinaryOp_match<LHS, RHS, TargetOpcode::G_BUILD_VECTOR, false>(L, R);
462 inline BinaryOp_match<LHS, RHS, TargetOpcode::G_BUILD_VECTOR_TRUNC, false>
464 return BinaryOp_match<LHS, RHS, TargetOpcode::G_BUILD_VECTOR_TRUNC, false>(L,
469 inline BinaryOp_match<LHS, RHS, TargetOpcode::G_PTR_ADD, false>
471 return BinaryOp_match<LHS, RHS, TargetOpcode::G_PTR_ADD, false>(L, R);
475 inline BinaryOp_match<LHS, RHS, TargetOpcode::G_SUB> m_GSub(const LHS &L,
[all …]
H A DMachineIRBuilder.h500 return buildInstr(TargetOpcode::G_PTRMASK, {Res}, {Op0, Op1}); in buildPtrMask()
561 return buildInstr(TargetOpcode::G_UADDO, {Res, CarryOut}, {Op0, Op1}); in buildUAddo()
567 return buildInstr(TargetOpcode::G_USUBO, {Res, CarryOut}, {Op0, Op1}); in buildUSubo()
573 return buildInstr(TargetOpcode::G_SADDO, {Res, CarryOut}, {Op0, Op1}); in buildSAddo()
579 return buildInstr(TargetOpcode::G_SSUBO, {Res, CarryOut}, {Op0, Op1}); in buildSSubo()
599 return buildInstr(TargetOpcode::G_UADDE, {Res, CarryOut}, in buildUAdde()
607 return buildInstr(TargetOpcode::G_USUBE, {Res, CarryOut}, in buildUSube()
615 return buildInstr(TargetOpcode::G_SADDE, {Res, CarryOut}, in buildSAdde()
623 return buildInstr(TargetOpcode::G_SSUBE, {Res, CarryOut}, in buildSSube()
659 return buildInstr(TargetOpcode::G_SEXT_INREG, {Res}, {Op, SrcOp(ImmOp)}); in buildSExtInReg()
[all …]
H A DUtils.h54 case TargetOpcode::G_VECREDUCE_SEQ_FADD: \
55 case TargetOpcode::G_VECREDUCE_SEQ_FMUL: \
56 case TargetOpcode::G_VECREDUCE_FADD: \
57 case TargetOpcode::G_VECREDUCE_FMUL: \
58 case TargetOpcode::G_VECREDUCE_FMAX: \
59 case TargetOpcode::G_VECREDUCE_FMIN: \
60 case TargetOpcode::G_VECREDUCE_ADD: \
61 case TargetOpcode::G_VECREDUCE_MUL: \
62 case TargetOpcode::G_VECREDUCE_AND: \
63 case TargetOpcode::G_VECREDUCE_OR: \
[all …]
H A DLegalizationArtifactCombiner.h40 case TargetOpcode::G_TRUNC: in isArtifactCast()
41 case TargetOpcode::G_SEXT: in isArtifactCast()
42 case TargetOpcode::G_ZEXT: in isArtifactCast()
43 case TargetOpcode::G_ANYEXT: in isArtifactCast()
60 assert(MI.getOpcode() == TargetOpcode::G_ANYEXT); in tryCombineAnyExt()
95 if (SrcMI->getOpcode() == TargetOpcode::G_CONSTANT) { in tryCombineAnyExt()
97 if (isInstLegal({TargetOpcode::G_CONSTANT, {DstTy}})) { in tryCombineAnyExt()
114 assert(MI.getOpcode() == TargetOpcode::G_ZEXT); in tryCombineZExt()
127 if (isInstUnsupported({TargetOpcode::G_AND, {DstTy}}) || in tryCombineZExt()
158 if (SrcMI->getOpcode() == TargetOpcode::G_CONSTANT) { in tryCombineZExt()
[all …]
H A DIRTranslator.h408 return translateBinaryOp(TargetOpcode::G_ADD, U, MIRBuilder); in translateAdd()
411 return translateBinaryOp(TargetOpcode::G_SUB, U, MIRBuilder); in translateSub()
414 return translateBinaryOp(TargetOpcode::G_AND, U, MIRBuilder); in translateAnd()
417 return translateBinaryOp(TargetOpcode::G_MUL, U, MIRBuilder); in translateMul()
420 return translateBinaryOp(TargetOpcode::G_OR, U, MIRBuilder); in translateOr()
423 return translateBinaryOp(TargetOpcode::G_XOR, U, MIRBuilder); in translateXor()
427 return translateBinaryOp(TargetOpcode::G_UDIV, U, MIRBuilder); in translateUDiv()
430 return translateBinaryOp(TargetOpcode::G_SDIV, U, MIRBuilder); in translateSDiv()
433 return translateBinaryOp(TargetOpcode::G_UREM, U, MIRBuilder); in translateURem()
436 return translateBinaryOp(TargetOpcode::G_SREM, U, MIRBuilder); in translateSRem()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/Mips/
H A DMipsRegisterBankInfo.cpp110 case TargetOpcode::G_FCONSTANT: in isFloatingPointOpcode()
111 case TargetOpcode::G_FADD: in isFloatingPointOpcode()
112 case TargetOpcode::G_FSUB: in isFloatingPointOpcode()
113 case TargetOpcode::G_FMUL: in isFloatingPointOpcode()
114 case TargetOpcode::G_FDIV: in isFloatingPointOpcode()
115 case TargetOpcode::G_FABS: in isFloatingPointOpcode()
116 case TargetOpcode::G_FSQRT: in isFloatingPointOpcode()
117 case TargetOpcode::G_FCEIL: in isFloatingPointOpcode()
118 case TargetOpcode::G_FFLOOR: in isFloatingPointOpcode()
119 case TargetOpcode::G_FPEXT: in isFloatingPointOpcode()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/
H A DX86RegisterBankInfo.cpp170 if (!isPreISelGenericOpcode(Opc) || Opc == TargetOpcode::G_PHI) { in getInstrMapping()
177 case TargetOpcode::G_ADD: in getInstrMapping()
178 case TargetOpcode::G_SUB: in getInstrMapping()
179 case TargetOpcode::G_MUL: in getInstrMapping()
181 case TargetOpcode::G_FADD: in getInstrMapping()
182 case TargetOpcode::G_FSUB: in getInstrMapping()
183 case TargetOpcode::G_FMUL: in getInstrMapping()
184 case TargetOpcode::G_FDIV: in getInstrMapping()
186 case TargetOpcode::G_SHL: in getInstrMapping()
187 case TargetOpcode::G_LSHR: in getInstrMapping()
[all …]
H A DX86InstructionSelector.cpp291 TII.get(TargetOpcode::SUBREG_TO_REG)) in selectCopy()
356 if (Opcode == TargetOpcode::LOAD_STACK_GUARD) in select()
380 case TargetOpcode::G_STORE: in select()
381 case TargetOpcode::G_LOAD: in select()
383 case TargetOpcode::G_PTR_ADD: in select()
384 case TargetOpcode::G_FRAME_INDEX: in select()
386 case TargetOpcode::G_GLOBAL_VALUE: in select()
388 case TargetOpcode::G_CONSTANT: in select()
390 case TargetOpcode::G_FCONSTANT: in select()
392 case TargetOpcode::G_PTRTOINT: in select()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DCodeGenCommonISel.cpp67 case TargetOpcode::G_TRUNC: in MIIsInTerminatorSequence()
68 case TargetOpcode::G_ZEXT: in MIIsInTerminatorSequence()
69 case TargetOpcode::G_ANYEXT: in MIIsInTerminatorSequence()
70 case TargetOpcode::G_SEXT: in MIIsInTerminatorSequence()
71 case TargetOpcode::G_MERGE_VALUES: in MIIsInTerminatorSequence()
72 case TargetOpcode::G_UNMERGE_VALUES: in MIIsInTerminatorSequence()
73 case TargetOpcode::G_CONCAT_VECTORS: in MIIsInTerminatorSequence()
74 case TargetOpcode::G_BUILD_VECTOR: in MIIsInTerminatorSequence()
75 case TargetOpcode::G_EXTRACT: in MIIsInTerminatorSequence()
206 assert(Copy.getOpcode() == TargetOpcode::COPY && "Must be a COPY"); in getSalvageOpsForCopy()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/SPIRV/
H A DSPIRVLegalizerInfo.cpp28 TargetOpcode::G_ADD,
29 TargetOpcode::G_FADD,
30 TargetOpcode::G_SUB,
31 TargetOpcode::G_FSUB,
32 TargetOpcode::G_MUL,
33 TargetOpcode::G_FMUL,
34 TargetOpcode::G_SDIV,
35 TargetOpcode::G_UDIV,
36 TargetOpcode::G_FDIV,
37 TargetOpcode::G_SREM,
[all …]
H A DSPIRVInstructionSelector.cpp228 assert(Res || Def->getOpcode() == TargetOpcode::G_CONSTANT); in select()
252 assert(!HasDefs || ResType || I.getOpcode() == TargetOpcode::G_GLOBAL_VALUE); in select()
266 I.getOpcode() == TargetOpcode::G_CONSTANT); in spvSelect()
269 case TargetOpcode::G_CONSTANT: in spvSelect()
272 case TargetOpcode::G_GLOBAL_VALUE: in spvSelect()
274 case TargetOpcode::G_IMPLICIT_DEF: in spvSelect()
277 case TargetOpcode::G_INTRINSIC_W_SIDE_EFFECTS: in spvSelect()
279 case TargetOpcode::G_BITREVERSE: in spvSelect()
282 case TargetOpcode::G_BUILD_VECTOR: in spvSelect()
285 case TargetOpcode::G_SHUFFLE_VECTOR: { in spvSelect()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/
H A DTargetOpcodes.h20 namespace TargetOpcode {
31 return Opcode >= TargetOpcode::PRE_ISEL_GENERIC_OPCODE_START && in isPreISelGenericOpcode()
32 Opcode <= TargetOpcode::PRE_ISEL_GENERIC_OPCODE_END; in isPreISelGenericOpcode()
37 return Opcode > TargetOpcode::PRE_ISEL_GENERIC_OPCODE_END; in isTargetSpecificOpcode()
43 return Opcode >= TargetOpcode::PRE_ISEL_GENERIC_OPTIMIZATION_HINT_START && in isPreISelGenericOptimizationHint()
44 Opcode <= TargetOpcode::PRE_ISEL_GENERIC_OPTIMIZATION_HINT_END; in isPreISelGenericOptimizationHint()

1234567891011