LLVM 24.0.0git
AArch64SelectionDAGInfo.cpp
Go to the documentation of this file.
1//===-- AArch64SelectionDAGInfo.cpp - AArch64 SelectionDAG Info -----------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This file implements the AArch64SelectionDAGInfo class.
10//
11//===----------------------------------------------------------------------===//
12
15
16#define GET_SDNODE_DESC
17#include "AArch64GenSDNodeInfo.inc"
18#undef GET_SDNODE_DESC
19
20using namespace llvm;
21
22#define DEBUG_TYPE "aarch64-selectiondag-info"
23
24static cl::opt<bool>
25 LowerToSMERoutines("aarch64-lower-to-sme-routines", cl::Hidden,
26 cl::desc("Enable AArch64 SME memory operations "
27 "to lower to librt functions"),
28 cl::init(true));
29
30static cl::opt<bool> UseMOPS("aarch64-use-mops", cl::Hidden,
31 cl::desc("Enable AArch64 MOPS instructions "
32 "for memcpy/memset/memmove"),
33 cl::init(true));
34
37
39 const SDNode *N) const {
40 switch (N->getOpcode()) {
41 case AArch64ISD::WrapperLarge:
42 // operand #0 must have type i32, but has type i64
43 return;
44 }
45
47
48#ifndef NDEBUG
49 // Some additional checks not yet implemented by verifyTargetNode.
50 switch (N->getOpcode()) {
51 case AArch64ISD::CTTZ_ELTS:
52 case AArch64ISD::CTTZ_ELTS_ZERO_POISON:
53 assert(N->getOperand(0).getValueType() == N->getOperand(1).getValueType() &&
54 "Expected the general-predicate and mask to have matching types");
55 break;
56 case AArch64ISD::SUNPKLO:
57 case AArch64ISD::SUNPKHI:
58 case AArch64ISD::UUNPKLO:
59 case AArch64ISD::UUNPKHI: {
60 EVT VT = N->getValueType(0);
61 EVT OpVT = N->getOperand(0).getValueType();
62 assert(OpVT.isVector() && VT.isVector() && OpVT.isInteger() &&
63 VT.isInteger() && "Expected integer vectors!");
64 assert(OpVT.getSizeInBits() == VT.getSizeInBits() &&
65 "Expected vectors of equal size!");
67 "Expected result vector with half the lanes of its input!");
68 break;
69 }
70 case AArch64ISD::TRN1:
71 case AArch64ISD::TRN2:
72 case AArch64ISD::UZP1:
73 case AArch64ISD::UZP2:
74 case AArch64ISD::ZIP1:
75 case AArch64ISD::ZIP2: {
76 EVT VT = N->getValueType(0);
77 EVT Op0VT = N->getOperand(0).getValueType();
78 EVT Op1VT = N->getOperand(1).getValueType();
79 assert(VT.isVector() && Op0VT.isVector() && Op1VT.isVector() &&
80 "Expected vectors!");
81 assert(VT == Op0VT && VT == Op1VT && "Expected matching vectors!");
82 break;
83 }
84 case AArch64ISD::RSHRNB_I: {
85 EVT VT = N->getValueType(0);
86 EVT Op0VT = N->getOperand(0).getValueType();
87 assert(VT.isVector() && VT.isInteger() &&
88 "Expected integer vector result type!");
89 assert(Op0VT.isVector() && Op0VT.isInteger() &&
90 "Expected first operand to be an integer vector!");
91 assert(VT.getSizeInBits() == Op0VT.getSizeInBits() &&
92 "Expected vectors of equal size!");
94 "Expected input vector with half the lanes of its result!");
95 assert(isa<ConstantSDNode>(N->getOperand(1)) &&
96 "Expected second operand to be a constant!");
97 break;
98 }
99 }
100#endif
101}
102
104 const SDLoc &DL, SDValue Chain,
105 SDValue Dst, SDValue SrcOrValue,
106 SDValue Size, Align DstAlign,
107 Align SrcAlign, bool isVolatile,
108 MachinePointerInfo DstPtrInfo,
109 MachinePointerInfo SrcPtrInfo) const {
110
111 // Get the constant size of the copy/set.
113 if (auto *C = dyn_cast<ConstantSDNode>(Size))
114 MemSize = LocationSize::precise(C->getZExtValue());
115
116 const bool IsSet = Opcode == AArch64::MOPSMemorySetPseudo ||
117 Opcode == AArch64::MOPSMemorySetTaggingPseudo;
118
120
121 auto Vol =
123 auto DstFlags = MachineMemOperand::MOStore | Vol;
124 auto *DstOp =
125 MF.getMachineMemOperand(DstPtrInfo, DstFlags, MemSize, DstAlign);
126
127 if (IsSet) {
128 // Extend value to i64, if required.
129 if (SrcOrValue.getValueType() != MVT::i64)
130 SrcOrValue = DAG.getNode(ISD::ANY_EXTEND, DL, MVT::i64, SrcOrValue);
131 SDValue Ops[] = {Dst, Size, SrcOrValue, Chain};
132 const EVT ResultTys[] = {MVT::i64, MVT::i64, MVT::Other};
133 MachineSDNode *Node = DAG.getMachineNode(Opcode, DL, ResultTys, Ops);
134 DAG.setNodeMemRefs(Node, {DstOp});
135 return SDValue(Node, 2);
136 } else {
137 SDValue Ops[] = {Dst, SrcOrValue, Size, Chain};
138 const EVT ResultTys[] = {MVT::i64, MVT::i64, MVT::i64, MVT::Other};
139 MachineSDNode *Node = DAG.getMachineNode(Opcode, DL, ResultTys, Ops);
140
141 auto SrcFlags = MachineMemOperand::MOLoad | Vol;
142 auto *SrcOp =
143 MF.getMachineMemOperand(SrcPtrInfo, SrcFlags, MemSize, SrcAlign);
145 return SDValue(Node, 3);
146 }
147}
148
150 SelectionDAG &DAG, const SDLoc &DL, SDValue Chain, SDValue Op0, SDValue Op1,
151 SDValue Size, RTLIB::Libcall LC) const {
152 const AArch64Subtarget &STI =
154 const AArch64TargetLowering *TLI = STI.getTargetLowering();
156 Args.emplace_back(Op0, PointerType::getUnqual(*DAG.getContext()));
157
158 bool UsesResult = false;
159 RTLIB::Libcall NewLC;
160 switch (LC) {
161 case RTLIB::MEMCPY: {
162 NewLC = RTLIB::SC_MEMCPY;
163 Args.emplace_back(Op1, PointerType::getUnqual(*DAG.getContext()));
164 break;
165 }
166 case RTLIB::MEMMOVE: {
167 NewLC = RTLIB::SC_MEMMOVE;
168 Args.emplace_back(Op1, PointerType::getUnqual(*DAG.getContext()));
169 break;
170 }
171 case RTLIB::MEMSET: {
172 NewLC = RTLIB::SC_MEMSET;
173 Args.emplace_back(DAG.getZExtOrTrunc(Op1, DL, MVT::i32),
175 break;
176 }
177 case RTLIB::MEMCHR: {
178 UsesResult = true;
179 NewLC = RTLIB::SC_MEMCHR;
180 Args.emplace_back(DAG.getZExtOrTrunc(Op1, DL, MVT::i32),
182 break;
183 }
184 default:
185 return SDValue();
186 }
187
188 RTLIB::LibcallImpl NewLCImpl = DAG.getLibcalls().getLibcallImpl(NewLC);
189 if (NewLCImpl == RTLIB::Unsupported)
190 return SDValue();
191
192 EVT PointerVT = TLI->getPointerTy(DAG.getDataLayout());
193 SDValue Symbol = DAG.getExternalSymbol(NewLCImpl, PointerVT);
194 Args.emplace_back(Size, DAG.getDataLayout().getIntPtrType(*DAG.getContext()));
195
199 DAG.getLibcalls().getLibcallImplCallingConv(NewLCImpl), RetTy, Symbol,
200 std::move(Args));
201
202 auto [Result, ChainOut] = TLI->LowerCallTo(CLI);
203 return UsesResult ? DAG.getMergeValues({Result, ChainOut}, DL) : ChainOut;
204}
205
207 SelectionDAG &DAG, const SDLoc &DL, SDValue Chain, SDValue Dst, SDValue Src,
208 SDValue Size, Align DstAlign, Align SrcAlign, bool isVolatile,
209 bool AlwaysInline, MachinePointerInfo DstPtrInfo,
210 MachinePointerInfo SrcPtrInfo) const {
211 const AArch64Subtarget &STI =
213
214 if (UseMOPS && STI.hasMOPS())
215 return EmitMOPS(AArch64::MOPSMemoryCopyPseudo, DAG, DL, Chain, Dst, Src,
216 Size, DstAlign, SrcAlign, isVolatile, DstPtrInfo,
217 SrcPtrInfo);
218
220 SMEAttrs Attrs = AFI->getSMEFnAttrs();
221 if (LowerToSMERoutines && !Attrs.hasNonStreamingInterfaceAndBody())
222 return EmitStreamingCompatibleMemLibCall(DAG, DL, Chain, Dst, Src, Size,
223 RTLIB::MEMCPY);
224 return SDValue();
225}
226
228 SelectionDAG &DAG, const SDLoc &dl, SDValue Chain, SDValue Dst, SDValue Src,
229 SDValue Size, Align Alignment, bool isVolatile, bool AlwaysInline,
230 MachinePointerInfo DstPtrInfo) const {
231 const AArch64Subtarget &STI =
233
234 if (UseMOPS && STI.hasMOPS())
235 return EmitMOPS(AArch64::MOPSMemorySetPseudo, DAG, dl, Chain, Dst, Src,
236 Size, Alignment, Alignment, isVolatile, DstPtrInfo,
238
240 SMEAttrs Attrs = AFI->getSMEFnAttrs();
241 if (LowerToSMERoutines && !Attrs.hasNonStreamingInterfaceAndBody())
242 return EmitStreamingCompatibleMemLibCall(DAG, dl, Chain, Dst, Src, Size,
243 RTLIB::MEMSET);
244 return SDValue();
245}
246
248 SelectionDAG &DAG, const SDLoc &dl, SDValue Chain, SDValue Dst, SDValue Src,
249 SDValue Size, Align DstAlign, Align SrcAlign, bool isVolatile,
250 MachinePointerInfo DstPtrInfo, MachinePointerInfo SrcPtrInfo) const {
251 const AArch64Subtarget &STI =
253
254 if (UseMOPS && STI.hasMOPS())
255 return EmitMOPS(AArch64::MOPSMemoryMovePseudo, DAG, dl, Chain, Dst, Src,
256 Size, DstAlign, SrcAlign, isVolatile, DstPtrInfo,
257 SrcPtrInfo);
258
260 SMEAttrs Attrs = AFI->getSMEFnAttrs();
261 if (LowerToSMERoutines && !Attrs.hasNonStreamingInterfaceAndBody())
262 return EmitStreamingCompatibleMemLibCall(DAG, dl, Chain, Dst, Src, Size,
263 RTLIB::MEMMOVE);
264 return SDValue();
265}
266
268 SelectionDAG &DAG, const SDLoc &dl, SDValue Chain, SDValue Src,
269 SDValue Char, SDValue Length, MachinePointerInfo SrcPtrInfo) const {
271 SMEAttrs Attrs = AFI->getSMEFnAttrs();
272 if (LowerToSMERoutines && !Attrs.hasNonStreamingInterfaceAndBody()) {
274 DAG, dl, Chain, Src, Char, Length, RTLIB::MEMCHR);
275 return std::make_pair(Result.getValue(0), Result.getValue(1));
276 }
277 return std::make_pair(SDValue(), SDValue());
278}
279
280static const int kSetTagLoopThreshold = 176;
281
283 SDValue Chain, SDValue Ptr, uint64_t ObjSize,
284 const MachineMemOperand *BaseMemOperand,
285 bool ZeroData) {
287 unsigned ObjSizeScaled = ObjSize / 16;
288
289 SDValue TagSrc = Ptr;
290 if (Ptr.getOpcode() == ISD::FrameIndex) {
291 int FI = cast<FrameIndexSDNode>(Ptr)->getIndex();
292 Ptr = DAG.getTargetFrameIndex(FI, MVT::i64);
293 // A frame index operand may end up as [SP + offset] => it is fine to use SP
294 // register as the tag source.
295 TagSrc = DAG.getRegister(AArch64::SP, MVT::i64);
296 }
297
298 const unsigned OpCode1 = ZeroData ? AArch64ISD::STZG : AArch64ISD::STG;
299 const unsigned OpCode2 = ZeroData ? AArch64ISD::STZ2G : AArch64ISD::ST2G;
300
301 SmallVector<SDValue, 8> OutChains;
302 unsigned OffsetScaled = 0;
303 while (OffsetScaled < ObjSizeScaled) {
304 if (ObjSizeScaled - OffsetScaled >= 2) {
305 SDValue AddrNode = DAG.getMemBasePlusOffset(
306 Ptr, TypeSize::getFixed(OffsetScaled * 16), dl);
308 OpCode2, dl, DAG.getVTList(MVT::Other),
309 {Chain, TagSrc, AddrNode},
310 MVT::v4i64,
311 MF.getMachineMemOperand(BaseMemOperand, OffsetScaled * 16, 16 * 2));
312 OffsetScaled += 2;
313 OutChains.push_back(St);
314 continue;
315 }
316
317 if (ObjSizeScaled - OffsetScaled > 0) {
318 SDValue AddrNode = DAG.getMemBasePlusOffset(
319 Ptr, TypeSize::getFixed(OffsetScaled * 16), dl);
321 OpCode1, dl, DAG.getVTList(MVT::Other),
322 {Chain, TagSrc, AddrNode},
323 MVT::v2i64,
324 MF.getMachineMemOperand(BaseMemOperand, OffsetScaled * 16, 16));
325 OffsetScaled += 1;
326 OutChains.push_back(St);
327 }
328 }
329
330 SDValue Res = DAG.getNode(ISD::TokenFactor, dl, MVT::Other, OutChains);
331 return Res;
332}
333
335 SelectionDAG &DAG, const SDLoc &dl, SDValue Chain, SDValue Addr,
336 SDValue Size, MachinePointerInfo DstPtrInfo, bool ZeroData) const {
337 uint64_t ObjSize = Size->getAsZExtVal();
338 assert(ObjSize % 16 == 0);
339
341 MachineMemOperand *BaseMemOperand = MF.getMachineMemOperand(
342 DstPtrInfo, MachineMemOperand::MOStore, ObjSize, Align(16));
343
344 bool UseSetTagRangeLoop =
345 kSetTagLoopThreshold >= 0 && (int)ObjSize >= kSetTagLoopThreshold;
346 if (!UseSetTagRangeLoop)
347 return EmitUnrolledSetTag(DAG, dl, Chain, Addr, ObjSize, BaseMemOperand,
348 ZeroData);
349
350 const EVT ResTys[] = {MVT::i64, MVT::i64, MVT::Other};
351
352 unsigned Opcode;
353 if (Addr.getOpcode() == ISD::FrameIndex) {
354 int FI = cast<FrameIndexSDNode>(Addr)->getIndex();
355 Addr = DAG.getTargetFrameIndex(FI, MVT::i64);
356 Opcode = ZeroData ? AArch64::STZGloop : AArch64::STGloop;
357 } else {
358 Opcode = ZeroData ? AArch64::STZGloop_wback : AArch64::STGloop_wback;
359 }
360 SDValue Ops[] = {DAG.getTargetConstant(ObjSize, dl, MVT::i64), Addr, Chain};
361 SDNode *St = DAG.getMachineNode(Opcode, dl, ResTys, Ops);
362
363 DAG.setNodeMemRefs(cast<MachineSDNode>(St), {BaseMemOperand});
364 return SDValue(St, 2);
365}
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
static SDValue EmitUnrolledSetTag(SelectionDAG &DAG, const SDLoc &dl, SDValue Chain, SDValue Ptr, uint64_t ObjSize, const MachineMemOperand *BaseMemOperand, bool ZeroData)
static cl::opt< bool > UseMOPS("aarch64-use-mops", cl::Hidden, cl::desc("Enable AArch64 MOPS instructions " "for memcpy/memset/memmove"), cl::init(true))
static cl::opt< bool > LowerToSMERoutines("aarch64-lower-to-sme-routines", cl::Hidden, cl::desc("Enable AArch64 SME memory operations " "to lower to librt functions"), cl::init(true))
static const int kSetTagLoopThreshold
unsigned uint64_t
MachineBasicBlock MachineBasicBlock::iterator DebugLoc DL
static GCRegistry::Add< ShadowStackGC > C("shadow-stack", "Very portable GC for uncooperative code generators")
const AbstractManglingParser< Derived, Alloc >::OperatorInfo AbstractManglingParser< Derived, Alloc >::Ops[]
AArch64FunctionInfo - This class is derived from MachineFunctionInfo and contains private AArch64-spe...
void verifyTargetNode(const SelectionDAG &DAG, const SDNode *N) const override
Checks that the given target-specific node is valid. Aborts if it is not.
SDValue EmitMOPS(unsigned Opcode, SelectionDAG &DAG, const SDLoc &DL, SDValue Chain, SDValue Dst, SDValue SrcOrValue, SDValue Size, Align DstAlign, Align SrcAlign, bool isVolatile, MachinePointerInfo DstPtrInfo, MachinePointerInfo SrcPtrInfo) const
SDValue EmitTargetCodeForMemset(SelectionDAG &DAG, const SDLoc &dl, SDValue Chain, SDValue Dst, SDValue Src, SDValue Size, Align Alignment, bool isVolatile, bool AlwaysInline, MachinePointerInfo DstPtrInfo) const override
Emit target-specific code that performs a memset.
SDValue EmitStreamingCompatibleMemLibCall(SelectionDAG &DAG, const SDLoc &DL, SDValue Chain, SDValue Op0, SDValue Op1, SDValue Size, RTLIB::Libcall LC) const
SDValue EmitTargetCodeForSetTag(SelectionDAG &DAG, const SDLoc &dl, SDValue Chain, SDValue Op1, SDValue Op2, MachinePointerInfo DstPtrInfo, bool ZeroData) const override
SDValue EmitTargetCodeForMemmove(SelectionDAG &DAG, const SDLoc &dl, SDValue Chain, SDValue Dst, SDValue Src, SDValue Size, Align DstAlign, Align SrcAlign, bool isVolatile, MachinePointerInfo DstPtrInfo, MachinePointerInfo SrcPtrInfo) const override
Emit target-specific code that performs a memmove.
SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, const SDLoc &dl, SDValue Chain, SDValue Dst, SDValue Src, SDValue Size, Align DstAlign, Align SrcAlign, bool isVolatile, bool AlwaysInline, MachinePointerInfo DstPtrInfo, MachinePointerInfo SrcPtrInfo) const override
Emit target-specific code that performs a memcpy.
std::pair< SDValue, SDValue > EmitTargetCodeForMemchr(SelectionDAG &DAG, const SDLoc &dl, SDValue Chain, SDValue Src, SDValue Char, SDValue Length, MachinePointerInfo SrcPtrInfo) const override
Emit target-specific code that performs a memchr, in cases where that is faster than a libcall.
const AArch64TargetLowering * getTargetLowering() const override
LLVM_ABI IntegerType * getIntPtrType(LLVMContext &C, unsigned AddressSpace=0) const
Returns an integer type with size at least as big as that of a pointer in the given address space.
CallingConv::ID getLibcallImplCallingConv(RTLIB::LibcallImpl Call) const
Get the CallingConv that should be used for the specified libcall.
RTLIB::LibcallImpl getLibcallImpl(RTLIB::Libcall Call) const
Return the lowering's selection of implementation call for Call.
static LocationSize precise(uint64_t Value)
static constexpr LocationSize afterPointer()
Any location after the base pointer (but still within the underlying object).
const TargetSubtargetInfo & getSubtarget() const
getSubtarget - Return the subtarget for which this machine code is being compiled.
Ty * getInfo()
getInfo - Keep track of various per-function pieces of information for backends that would like to do...
MachineMemOperand * getMachineMemOperand(MachinePointerInfo PtrInfo, MachineMemOperand::Flags F, LLT MemTy, Align BaseAlignment, const MMOMetadata &Metadata=MMOMetadata(), SyncScope::ID SSID=SyncScope::System, AtomicOrdering Ordering=AtomicOrdering::NotAtomic, AtomicOrdering FailureOrdering=AtomicOrdering::NotAtomic)
getMachineMemOperand - Allocate a new MachineMemOperand.
A description of a memory reference used in the backend.
@ MOVolatile
The memory access is volatile.
@ MOLoad
The memory access reads data.
@ MOStore
The memory access writes data.
An SDNode that represents everything that will be needed to construct a MachineInstr.
Class to represent pointers.
static PointerType * getUnqual(LLVMContext &C)
This constructs an opaque pointer to an object in the default address space (address space zero).
Wrapper class for IR location info (IR ordering and DebugLoc) to be passed into SDNode creation funct...
Represents one node in the SelectionDAG.
Unlike LLVM values, Selection DAG nodes may return multiple values as the result of a computation.
EVT getValueType() const
Return the ValueType of the referenced return value.
unsigned getOpcode() const
SMEAttrs is a utility class to parse the SME ACLE attributes on functions.
SelectionDAGGenTargetInfo(const SDNodeInfo &GenNodeInfo)
void verifyTargetNode(const SelectionDAG &DAG, const SDNode *N) const override
Checks that the given target-specific node is valid. Aborts if it is not.
This is used to represent a portion of an LLVM function in a low-level Data Dependence DAG representa...
LLVM_ABI SDValue getMergeValues(ArrayRef< SDValue > Ops, const SDLoc &dl)
Create a MERGE_VALUES node from the given operands.
LLVM_ABI SDVTList getVTList(EVT VT)
Return an SDVTList that represents the list of values specified.
LLVM_ABI MachineSDNode * getMachineNode(unsigned Opcode, const SDLoc &dl, EVT VT)
These are used for target selectors to create a new node with specified return type(s),...
LLVM_ABI SDValue getRegister(Register Reg, EVT VT)
LLVM_ABI SDValue getMemIntrinsicNode(unsigned Opcode, const SDLoc &dl, SDVTList VTList, ArrayRef< SDValue > Ops, EVT MemVT, MachinePointerInfo PtrInfo, Align Alignment, MachineMemOperand::Flags Flags=MachineMemOperand::MOLoad|MachineMemOperand::MOStore, LocationSize Size=LocationSize::precise(0), const AAMDNodes &AAInfo=AAMDNodes())
Creates a MemIntrinsicNode that may produce a result and takes a list of operands.
LLVM_ABI void setNodeMemRefs(MachineSDNode *N, ArrayRef< MachineMemOperand * > NewMemRefs)
Mutate the specified machine node's memory references to the provided list.
const DataLayout & getDataLayout() const
SDValue getTargetFrameIndex(int FI, EVT VT)
LLVM_ABI SDValue getMemBasePlusOffset(SDValue Base, TypeSize Offset, const SDLoc &DL, const SDNodeFlags Flags=SDNodeFlags())
Returns sum of the base pointer and offset.
LLVM_ABI SDValue getExternalSymbol(const char *Sym, EVT VT)
const LibcallLoweringInfo & getLibcalls() const
LLVM_ABI SDValue getNode(unsigned Opcode, const SDLoc &DL, EVT VT, ArrayRef< SDUse > Ops)
Gets or creates the specified node.
SDValue getTargetConstant(uint64_t Val, const SDLoc &DL, EVT VT, bool isOpaque=false)
MachineFunction & getMachineFunction() const
LLVM_ABI SDValue getZExtOrTrunc(SDValue Op, const SDLoc &DL, EVT VT)
Convert Op, which must be of integer type, to the integer type VT, by either zero-extending or trunca...
LLVMContext * getContext() const
void push_back(const T &Elt)
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
std::vector< ArgListEntry > ArgListTy
static constexpr TypeSize getFixed(ScalarTy ExactSize)
Definition TypeSize.h:339
static LLVM_ABI IntegerType * getInt32Ty(LLVMContext &C)
Definition Type.cpp:299
@ ANY_EXTEND
ANY_EXTEND - Used for integer types. The high bits are undefined.
Definition ISDOpcodes.h:863
@ TokenFactor
TokenFactor - This node takes multiple tokens as input and produces a single token result.
Definition ISDOpcodes.h:53
initializer< Ty > init(const Ty &Val)
This is an optimization pass for GlobalISel generic memory operations.
@ Length
Definition DWP.cpp:577
decltype(auto) dyn_cast(const From &Val)
dyn_cast<X> - Return the argument parameter cast to the specified type.
Definition Casting.h:643
bool isa(const From &Val)
isa<X> - Return true if the parameter to the template is an instance of one of the template type argu...
Definition Casting.h:547
decltype(auto) cast(const From &Val)
cast<X> - Return the argument parameter cast to the specified type.
Definition Casting.h:559
#define N
This struct is a compact representation of a valid (non-zero power of two) alignment.
Definition Alignment.h:39
Extended Value Type.
Definition ValueTypes.h:35
ElementCount getVectorElementCount() const
Definition ValueTypes.h:373
TypeSize getSizeInBits() const
Return the size of the specified value type in bits.
Definition ValueTypes.h:396
bool isVector() const
Return true if this is a vector value type.
Definition ValueTypes.h:176
bool isInteger() const
Return true if this is an integer or a vector integer type.
Definition ValueTypes.h:160
This class contains a discriminated union of information about pointers in memory operands,...
This structure contains all information that is necessary for lowering calls.
CallLoweringInfo & setLibCallee(CallingConv::ID CC, Type *ResultType, SDValue Target, ArgListTy &&ArgsList)
CallLoweringInfo & setDebugLoc(const SDLoc &dl)
CallLoweringInfo & setChain(SDValue InChain)