Home
last modified time | relevance | path

Searched refs:SDValue (Results 1 – 25 of 158) sorted by relevance

1234567

/openbsd-src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeTypes.h92 SmallDenseMap<SDValue, TableId, 8> ValueToIdMap;
93 SmallDenseMap<TableId, SDValue, 8> IdToValueMap;
139 TableId getTableId(SDValue V) { in getTableId()
158 const SDValue &getSDValue(TableId &Id) { in getSDValue()
182 TableId NewId = getTableId(SDValue(New, i)); in NoteDeletion()
183 TableId OldId = getTableId(SDValue(Old, i)); in NoteDeletion()
203 ValueToIdMap.erase(SDValue(Old, i)); in NoteDeletion()
211 void AnalyzeNewValue(SDValue &Val);
214 void RemapValue(SDValue &V);
217 SDValue BitConvertToInteger(SDValue Op);
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelDAGToDAG.h26 static inline bool isNullConstantOrUndef(SDValue V) { in isNullConstantOrUndef()
34 static inline bool getConstantValue(SDValue N, uint32_t &Out) { in getConstantValue()
115 std::pair<SDValue, SDValue> foldFrameIndex(SDValue N) const;
145 bool isBaseWithConstantOffset64(SDValue Addr, SDValue &LHS,
146 SDValue &RHS) const;
150 SDNode *glueCopyToOp(SDNode *N, SDValue NewChain, SDValue Glue) const;
151 SDNode *glueCopyToM0(SDNode *N, SDValue Val) const;
155 virtual bool SelectADDRVTX_READ(SDValue Addr, SDValue &Base, SDValue &Offset);
156 virtual bool SelectADDRIndirect(SDValue Addr, SDValue &Base, SDValue &Offset);
157 bool isDSOffsetLegal(SDValue Base, unsigned Offset) const;
[all …]
H A DSIISelLowering.h48 SDValue lowerKernArgParameterPtr(SelectionDAG &DAG, const SDLoc &SL,
49 SDValue Chain, uint64_t Offset) const;
50 SDValue getImplicitArgPtr(SelectionDAG &DAG, const SDLoc &SL) const;
51 SDValue getLDSKernelId(SelectionDAG &DAG, const SDLoc &SL) const;
52 SDValue lowerKernargMemParameter(SelectionDAG &DAG, EVT VT, EVT MemVT,
53 const SDLoc &SL, SDValue Chain,
57 SDValue loadImplicitKernelArgument(SelectionDAG &DAG, MVT VT, const SDLoc &DL,
61 SDValue lowerStackParameter(SelectionDAG &DAG, CCValAssign &VA,
62 const SDLoc &SL, SDValue Chain,
64 SDValue getPreloadedValue(SelectionDAG &DAG,
[all …]
H A DAMDGPUISelLowering.h35 SDValue getFFBX_U32(SelectionDAG &DAG, SDValue Op, const SDLoc &DL, unsigned Opc) const;
41 static unsigned numBitsUnsigned(SDValue Op, SelectionDAG &DAG);
46 static unsigned numBitsSigned(SDValue Op, SelectionDAG &DAG);
49 SDValue LowerEXTRACT_SUBVECTOR(SDValue Op, SelectionDAG &DAG) const;
50 SDValue LowerCONCAT_VECTORS(SDValue Op, SelectionDAG &DAG) const;
54 SDValue LowerFREM(SDValue Op, SelectionDAG &DAG) const;
55 SDValue LowerFCEIL(SDValue Op, SelectionDAG &DAG) const;
56 SDValue LowerFTRUNC(SDValue Op, SelectionDAG &DAG) const;
57 SDValue LowerFRINT(SDValue Op, SelectionDAG &DAG) const;
58 SDValue LowerFNEARBYINT(SDValue Op, SelectionDAG &DAG) const;
[all …]
H A DR600ISelLowering.h35 SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const override;
36 SDValue PerformDAGCombine(SDNode *N, DAGCombinerInfo &DCI) const override;
38 SmallVectorImpl<SDValue> &Results,
41 SDValue LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv,
45 SmallVectorImpl<SDValue> &InVals) const override;
72 SDValue LowerImplicitParameter(SelectionDAG &DAG, EVT VT, const SDLoc &DL,
77 SDValue OptimizeSwizzle(SDValue BuildVector, SDValue Swz[],
79 SDValue vectorToVerticalVector(SelectionDAG &DAG, SDValue Vector) const;
81 SDValue lowerFrameIndex(SDValue Op, SelectionDAG &DAG) const;
82 SDValue LowerEXTRACT_VECTOR_ELT(SDValue Op, SelectionDAG &DAG) const;
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/Hexagon/
H A DHexagonISelLowering.h138 bool IsEligibleForTailCallOptimization(SDValue Callee,
141 const SmallVectorImpl<SDValue> &OutVals,
155 bool hasBitTest(SDValue X, SDValue Y) const override;
172 bool isTargetCanonicalConstantNode(SDValue Op) const override;
178 SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const override;
179 void LowerOperationWrapper(SDNode *N, SmallVectorImpl<SDValue> &Results,
181 void ReplaceNodeResults(SDNode *N, SmallVectorImpl<SDValue> &Results,
186 SDValue LowerBUILD_VECTOR(SDValue Op, SelectionDAG &DAG) const;
187 SDValue LowerCONCAT_VECTORS(SDValue Op, SelectionDAG &DAG) const;
188 SDValue LowerEXTRACT_VECTOR_ELT(SDValue Op, SelectionDAG &DAG) const;
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/Mips/
H A DMipsSEISelDAGToDAG.h35 unsigned getMSACtrlReg(const SDValue RegIdx) const;
45 bool selectAddrFrameIndex(SDValue Addr, SDValue &Base, SDValue &Offset) const;
46 bool selectAddrFrameIndexOffset(SDValue Addr, SDValue &Base, SDValue &Offset,
50 bool selectAddrRegImm(SDValue Addr, SDValue &Base,
51 SDValue &Offset) const override;
53 bool selectAddrDefault(SDValue Addr, SDValue &Base,
54 SDValue &Offset) const override;
56 bool selectIntAddr(SDValue Addr, SDValue &Base,
57 SDValue &Offset) const override;
59 bool selectAddrRegImm9(SDValue Addr, SDValue &Base,
[all …]
H A DMipsISelDAGToDAG.h57 virtual bool selectAddrRegImm(SDValue Addr, SDValue &Base,
58 SDValue &Offset) const;
61 virtual bool selectAddrDefault(SDValue Addr, SDValue &Base,
62 SDValue &Offset) const;
65 virtual bool selectIntAddr(SDValue Addr, SDValue &Base,
66 SDValue &Offset) const;
68 virtual bool selectIntAddr11MM(SDValue Addr, SDValue &Base,
69 SDValue &Offset) const;
71 virtual bool selectIntAddr12MM(SDValue Addr, SDValue &Base,
72 SDValue &Offset) const;
[all …]
H A DMipsISelDAGToDAG.cpp77 bool MipsDAGToDAGISel::selectAddrRegImm(SDValue Addr, SDValue &Base, in selectAddrRegImm()
78 SDValue &Offset) const { in selectAddrRegImm()
83 bool MipsDAGToDAGISel::selectAddrDefault(SDValue Addr, SDValue &Base, in selectAddrDefault()
84 SDValue &Offset) const { in selectAddrDefault()
89 bool MipsDAGToDAGISel::selectIntAddr(SDValue Addr, SDValue &Base, in selectIntAddr()
90 SDValue &Offset) const { in selectIntAddr()
95 bool MipsDAGToDAGISel::selectIntAddr11MM(SDValue Addr, SDValue &Base, in selectIntAddr11MM()
96 SDValue &Offset) const { in selectIntAddr11MM()
101 bool MipsDAGToDAGISel::selectIntAddr12MM(SDValue Addr, SDValue &Base, in selectIntAddr12MM()
102 SDValue &Offset) const { in selectIntAddr12MM()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/
H A DSelectionDAGTargetInfo.h51 virtual SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, const SDLoc &dl, in EmitTargetCodeForMemcpy()
52 SDValue Chain, SDValue Op1, in EmitTargetCodeForMemcpy()
53 SDValue Op2, SDValue Op3, in EmitTargetCodeForMemcpy()
58 return SDValue(); in EmitTargetCodeForMemcpy()
67 virtual SDValue EmitTargetCodeForMemmove( in EmitTargetCodeForMemmove()
68 SelectionDAG &DAG, const SDLoc &dl, SDValue Chain, SDValue Op1, in EmitTargetCodeForMemmove()
69 SDValue Op2, SDValue Op3, Align Alignment, bool isVolatile, in EmitTargetCodeForMemmove()
71 return SDValue(); in EmitTargetCodeForMemmove()
81 virtual SDValue EmitTargetCodeForMemset(SelectionDAG &DAG, const SDLoc &dl, in EmitTargetCodeForMemset()
82 SDValue Chain, SDValue Op1, in EmitTargetCodeForMemset()
[all …]
H A DSelectionDAG.h252 SDValue Root;
429 void createOperands(SDNode *Node, ArrayRef<SDValue> Vals);
547 const SDValue &getRoot() const { return Root; }
550 SDValue getEntryNode() const {
551 return SDValue(const_cast<SDNode *>(&EntryNode), 0);
556 const SDValue &setRoot(SDValue N) {
651 SDValue getConstant(uint64_t Val, const SDLoc &DL, EVT VT,
653 SDValue getConstant(const APInt &Val, const SDLoc &DL, EVT VT,
656 SDValue getAllOnesConstant(const SDLoc &DL, EVT VT, bool IsTarget = false,
662 SDValue getConstant(const ConstantInt &Val, const SDLoc &DL, EVT VT,
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/VE/
H A DVECustomDAG.h36 bool isMaskArithmetic(SDValue Op);
44 bool maySafelyIgnoreMask(SDValue Op);
77 bool isLegalAVL(SDValue AVL);
80 SDValue getNodeAVL(SDValue);
85 SDValue getNodeMask(SDValue);
89 std::pair<SDValue, bool> getAnnotatedNodeAVL(SDValue);
97 SDValue getLoadStoreStride(SDValue Op, VECustomDAG &CDAG);
99 SDValue getMemoryPtr(SDValue Op);
101 SDValue getNodeChain(SDValue Op);
103 SDValue getStoredValue(SDValue Op);
[all …]
H A DVEISelLowering.h92 SDValue LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv,
96 SmallVectorImpl<SDValue> &InVals) const override;
98 SDValue LowerCall(TargetLowering::CallLoweringInfo &CLI,
99 SmallVectorImpl<SDValue> &InVals) const override;
105 SDValue LowerReturn(SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
107 const SmallVectorImpl<SDValue> &OutVals, const SDLoc &dl,
129 SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const override;
135 SDValue getPICJumpTableRelocBase(SDValue Table,
140 SDValue lowerATOMIC_FENCE(SDValue Op, SelectionDAG &DAG) const;
141 SDValue lowerATOMIC_SWAP(SDValue Op, SelectionDAG &DAG) const;
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.h515 bool isReassocProfitable(SelectionDAG &DAG, SDValue N0,
516 SDValue N1) const override;
526 void computeKnownBitsForTargetNode(const SDValue Op, KnownBits &Known,
539 bool targetShrinkDemandedConstant(SDValue Op, const APInt &DemandedBits,
558 SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const override;
562 SDValue PerformDAGCombine(SDNode *N, DAGCombinerInfo &DCI) const override;
586 SDValue ReconstructShuffle(SDValue Op, SelectionDAG &DAG) const;
621 bool isZExtFree(SDValue Val, EVT VT2) const override;
643 bool isMulAddWithConstProfitable(SDValue AddNode,
644 SDValue ConstNode) const override;
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.h700 SDValue get_VSPLTI_elt(SDNode *N, unsigned ByteSize, SelectionDAG &DAG);
816 bool hasAndNotCompare(SDValue) const override { in hasAndNotCompare() argument
826 SDValue getNegatedExpression(SDValue Op, SelectionDAG &DAG, bool LegalOps,
842 bool getPreIndexedAddressParts(SDNode *N, SDValue &Base,
843 SDValue &Offset,
849 bool SelectAddressEVXRegReg(SDValue N, SDValue &Base, SDValue &Index,
856 bool SelectAddressRegReg(SDValue N, SDValue &Base, SDValue &Index,
865 bool SelectAddressRegImm(SDValue N, SDValue &Disp, SDValue &Base,
868 bool SelectAddressRegImm34(SDValue N, SDValue &Disp, SDValue &Base,
873 bool SelectAddressRegRegOnly(SDValue N, SDValue &Base, SDValue &Index,
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/XCore/
H A DXCoreISelLowering.h95 bool isZExtFree(SDValue Val, EVT VT2) const override;
104 SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const override;
109 void ReplaceNodeResults(SDNode *N, SmallVectorImpl<SDValue>&Results,
143 SDValue LowerCCCArguments(SDValue Chain, CallingConv::ID CallConv,
147 SmallVectorImpl<SDValue> &InVals) const;
148 SDValue LowerCCCCallTo(SDValue Chain, SDValue Callee,
152 const SmallVectorImpl<SDValue> &OutVals,
155 SmallVectorImpl<SDValue> &InVals) const;
156 SDValue getReturnAddressFrameIndex(SelectionDAG &DAG) const;
157 SDValue getGlobalAddressWrapper(SDValue GA, const GlobalValue *GV,
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.h484 void LowerAsmOperandForConstraint(SDValue Op,
486 std::vector<SDValue> &Ops,
549 SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const override;
550 void LowerOperationWrapper(SDNode *N, SmallVectorImpl<SDValue> &Results,
552 void ReplaceNodeResults(SDNode *N, SmallVectorImpl<SDValue>&Results,
558 SelectionDAG & DAG, const SDLoc &DL, SDValue Val, SDValue *Parts,
561 SDValue joinRegisterPartsIntoValue(
562 SelectionDAG & DAG, const SDLoc &DL, const SDValue *Parts,
565 SDValue LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv,
569 SmallVectorImpl<SDValue> &InVals) const override;
[all …]
H A DSystemZSelectionDAGInfo.h24 SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, const SDLoc &DL,
25 SDValue Chain, SDValue Dst, SDValue Src,
26 SDValue Size, Align Alignment,
31 SDValue EmitTargetCodeForMemset(SelectionDAG &DAG, const SDLoc &DL,
32 SDValue Chain, SDValue Dst, SDValue Byte,
33 SDValue Size, Align Alignment,
37 std::pair<SDValue, SDValue>
38 EmitTargetCodeForMemcmp(SelectionDAG &DAG, const SDLoc &DL, SDValue Chain,
39 SDValue Src1, SDValue Src2, SDValue Size,
43 std::pair<SDValue, SDValue>
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/M68k/
H A DM68kISelLowering.h137 SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const override;
150 SDValue getPICJumpTableRelocBase(SDValue Table,
166 void LowerAsmOperandForConstraint(SDValue Op, std::string &Constraint,
167 std::vector<SDValue> &Ops,
184 SDValue getReturnAddressFrameIndex(SelectionDAG &DAG) const;
188 SDValue EmitTailCallLoadRetAddr(SelectionDAG &DAG, SDValue &OutRetAddr,
189 SDValue Chain, bool IsTailCall, int FPDiff,
194 SDValue EmitTailCallStoreRetAddr(SelectionDAG &DAG, MachineFunction &MF,
195 SDValue Chain, SDValue RetAddrFrIdx,
199 SDValue LowerMemArgument(SDValue Chain, CallingConv::ID CallConv,
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.h361 bool isZExtFree(SDValue Val, EVT VT2) const override;
367 bool hasAndNotCompare(SDValue Y) const override;
368 bool hasBitTest(SDValue X, SDValue Y) const override;
370 SDValue X, ConstantSDNode *XC, ConstantSDNode *CC, SDValue Y,
381 bool shouldScalarizeBinop(SDValue VecOp) const override;
418 SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const override;
419 void ReplaceNodeResults(SDNode *N, SmallVectorImpl<SDValue> &Results,
422 SDValue PerformDAGCombine(SDNode *N, DAGCombinerInfo &DCI) const override;
424 bool targetShrinkDemandedConstant(SDValue Op, const APInt &DemandedBits,
428 void computeKnownBitsForTargetNode(const SDValue Op,
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/Lanai/
H A DLanaiISelLowering.h72 SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const override;
78 SDValue LowerBlockAddress(SDValue Op, SelectionDAG &DAG) const;
79 SDValue LowerBR_CC(SDValue Op, SelectionDAG &DAG) const;
80 SDValue LowerConstantPool(SDValue Op, SelectionDAG &DAG) const;
81 SDValue LowerDYNAMIC_STACKALLOC(SDValue Op, SelectionDAG &DAG) const;
82 SDValue LowerFRAMEADDR(SDValue Op, SelectionDAG &DAG) const;
83 SDValue LowerGlobalAddress(SDValue Op, SelectionDAG &DAG) const;
84 SDValue LowerJumpTable(SDValue Op, SelectionDAG &DAG) const;
85 SDValue LowerMUL(SDValue Op, SelectionDAG &DAG) const;
86 SDValue LowerRETURNADDR(SDValue Op, SelectionDAG &DAG) const;
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/ARM/
H A DARMISelLowering.h399 SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const override;
403 void ReplaceNodeResults(SDNode *N, SmallVectorImpl<SDValue>&Results,
426 SDValue PerformCMOVCombine(SDNode *N, SelectionDAG &DAG) const;
427 SDValue PerformBRCONDCombine(SDNode *N, SelectionDAG &DAG) const;
428 SDValue PerformCMOVToBFICombine(SDNode *N, SelectionDAG &DAG) const;
429 SDValue PerformIntrinsicCombine(SDNode *N, DAGCombinerInfo &DCI) const;
430 SDValue PerformMVEExtCombine(SDNode *N, DAGCombinerInfo &DCI) const;
431 SDValue PerformMVETruncCombine(SDNode *N, DAGCombinerInfo &DCI) const;
432 SDValue PerformDAGCombine(SDNode *N, DAGCombinerInfo &DCI) const override;
434 bool SimplifyDemandedBitsForTargetNode(SDValue Op,
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/WebAssembly/
H A DWebAssemblyISelLowering.h57 bool shouldScalarizeBinop(SDValue VecOp) const override;
77 bool isVectorLoadExtDesirable(SDValue ExtVal) const override;
85 void computeKnownBitsForTargetNode(const SDValue Op, KnownBits &Known,
93 SDValue LowerCall(CallLoweringInfo &CLI,
94 SmallVectorImpl<SDValue> &InVals) const override;
99 SDValue LowerReturn(SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
101 const SmallVectorImpl<SDValue> &OutVals, const SDLoc &dl,
103 SDValue LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv,
107 SmallVectorImpl<SDValue> &InVals) const override;
109 void ReplaceNodeResults(SDNode *N, SmallVectorImpl<SDValue> &Results,
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/MSP430/
H A DMSP430ISelLowering.h87 SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const override;
93 SDValue LowerShifts(SDValue Op, SelectionDAG &DAG) const;
94 SDValue LowerGlobalAddress(SDValue Op, SelectionDAG &DAG) const;
95 SDValue LowerBlockAddress(SDValue Op, SelectionDAG &DAG) const;
96 SDValue LowerExternalSymbol(SDValue Op, SelectionDAG &DAG) const;
97 SDValue LowerBR_CC(SDValue Op, SelectionDAG &DAG) const;
98 SDValue LowerSETCC(SDValue Op, SelectionDAG &DAG) const;
99 SDValue LowerSELECT_CC(SDValue Op, SelectionDAG &DAG) const;
100 SDValue LowerSIGN_EXTEND(SDValue Op, SelectionDAG &DAG) const;
101 SDValue LowerRETURNADDR(SDValue Op, SelectionDAG &DAG) const;
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/Sparc/
H A DSparcISelLowering.h67 SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const override;
74 void computeKnownBitsForTargetNode(const SDValue Op,
90 void LowerAsmOperandForConstraint(SDValue Op,
92 std::vector<SDValue> &Ops,
129 SDValue
130 LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
133 SmallVectorImpl<SDValue> &InVals) const override;
134 SDValue LowerFormalArguments_32(SDValue Chain, CallingConv::ID CallConv,
138 SmallVectorImpl<SDValue> &InVals) const;
139 SDValue LowerFormalArguments_64(SDValue Chain, CallingConv::ID CallConv,
[all …]

1234567