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
26
28 const SDNode *N) const {
29 switch (N->getOpcode()) {
30 case AArch64ISD::WrapperLarge:
31 // operand #0 must have type i32, but has type i64
32 return;
33 }
34
36
37#ifndef NDEBUG
38 // Some additional checks not yet implemented by verifyTargetNode.
39 switch (N->getOpcode()) {
40 case AArch64ISD::CTTZ_ELTS:
41 case AArch64ISD::CTTZ_ELTS_ZERO_POISON:
42 assert(N->getOperand(0).getValueType() == N->getOperand(1).getValueType() &&
43 "Expected the general-predicate and mask to have matching types");
44 break;
45 case AArch64ISD::SUNPKLO:
46 case AArch64ISD::SUNPKHI:
47 case AArch64ISD::UUNPKLO:
48 case AArch64ISD::UUNPKHI: {
49 EVT VT = N->getValueType(0);
50 EVT OpVT = N->getOperand(0).getValueType();
51 assert(OpVT.isVector() && VT.isVector() && OpVT.isInteger() &&
52 VT.isInteger() && "Expected integer vectors!");
53 assert(OpVT.getSizeInBits() == VT.getSizeInBits() &&
54 "Expected vectors of equal size!");
56 "Expected result vector with half the lanes of its input!");
57 break;
58 }
59 case AArch64ISD::TRN1:
60 case AArch64ISD::TRN2:
61 case AArch64ISD::UZP1:
62 case AArch64ISD::UZP2:
63 case AArch64ISD::ZIP1:
64 case AArch64ISD::ZIP2: {
65 EVT VT = N->getValueType(0);
66 EVT Op0VT = N->getOperand(0).getValueType();
67 EVT Op1VT = N->getOperand(1).getValueType();
68 assert(VT.isVector() && Op0VT.isVector() && Op1VT.isVector() &&
69 "Expected vectors!");
70 assert(VT == Op0VT && VT == Op1VT && "Expected matching vectors!");
71 break;
72 }
73 case AArch64ISD::RSHRNB_I: {
74 EVT VT = N->getValueType(0);
75 EVT Op0VT = N->getOperand(0).getValueType();
76 assert(VT.isVector() && VT.isInteger() &&
77 "Expected integer vector result type!");
78 assert(Op0VT.isVector() && Op0VT.isInteger() &&
79 "Expected first operand to be an integer vector!");
80 assert(VT.getSizeInBits() == Op0VT.getSizeInBits() &&
81 "Expected vectors of equal size!");
83 "Expected input vector with half the lanes of its result!");
84 assert(isa<ConstantSDNode>(N->getOperand(1)) &&
85 "Expected second operand to be a constant!");
86 break;
87 }
88 }
89#endif
90}
91
93 const SDLoc &DL, SDValue Chain,
94 SDValue Dst, SDValue SrcOrValue,
95 SDValue Size, Align DstAlign,
96 Align SrcAlign, bool isVolatile,
97 MachinePointerInfo DstPtrInfo,
98 MachinePointerInfo SrcPtrInfo) const {
99
100 // Get the constant size of the copy/set.
102 if (auto *C = dyn_cast<ConstantSDNode>(Size))
103 MemSize = LocationSize::precise(C->getZExtValue());
104
105 const bool IsSet = Opcode == AArch64::MOPSMemorySetPseudo ||
106 Opcode == AArch64::MOPSMemorySetTaggingPseudo;
107
109
110 auto Vol =
112 auto DstFlags = MachineMemOperand::MOStore | Vol;
113 auto *DstOp =
114 MF.getMachineMemOperand(DstPtrInfo, DstFlags, MemSize, DstAlign);
115
116 if (IsSet) {
117 // Extend value to i64, if required.
118 if (SrcOrValue.getValueType() != MVT::i64)
119 SrcOrValue = DAG.getNode(ISD::ANY_EXTEND, DL, MVT::i64, SrcOrValue);
120 SDValue Ops[] = {Dst, Size, SrcOrValue, Chain};
121 const EVT ResultTys[] = {MVT::i64, MVT::i64, MVT::Other};
122 MachineSDNode *Node = DAG.getMachineNode(Opcode, DL, ResultTys, Ops);
123 DAG.setNodeMemRefs(Node, {DstOp});
124 return SDValue(Node, 2);
125 } else {
126 SDValue Ops[] = {Dst, SrcOrValue, Size, Chain};
127 const EVT ResultTys[] = {MVT::i64, MVT::i64, MVT::i64, MVT::Other};
128 MachineSDNode *Node = DAG.getMachineNode(Opcode, DL, ResultTys, Ops);
129
130 auto SrcFlags = MachineMemOperand::MOLoad | Vol;
131 auto *SrcOp =
132 MF.getMachineMemOperand(SrcPtrInfo, SrcFlags, MemSize, SrcAlign);
134 return SDValue(Node, 3);
135 }
136}
137
139 SelectionDAG &DAG, const SDLoc &DL, SDValue Chain, SDValue Op0, SDValue Op1,
140 SDValue Size, RTLIB::Libcall LC, bool &IsTailCall) const {
141 bool CanTailCall = IsTailCall;
142 IsTailCall = false;
143
144 const AArch64Subtarget &STI =
148 Args.emplace_back(Op0, PointerType::getUnqual(*DAG.getContext()));
149
150 bool UsesResult = false;
151 RTLIB::Libcall NewLC;
152 switch (LC) {
153 case RTLIB::MEMCPY: {
154 NewLC = RTLIB::SC_MEMCPY;
155 Args.emplace_back(Op1, PointerType::getUnqual(*DAG.getContext()));
156 break;
157 }
158 case RTLIB::MEMMOVE: {
159 NewLC = RTLIB::SC_MEMMOVE;
160 Args.emplace_back(Op1, PointerType::getUnqual(*DAG.getContext()));
161 break;
162 }
163 case RTLIB::MEMSET: {
164 NewLC = RTLIB::SC_MEMSET;
165 Args.emplace_back(DAG.getZExtOrTrunc(Op1, DL, MVT::i32),
167 break;
168 }
169 case RTLIB::MEMCHR: {
170 UsesResult = true;
171 NewLC = RTLIB::SC_MEMCHR;
172 Args.emplace_back(DAG.getZExtOrTrunc(Op1, DL, MVT::i32),
174 break;
175 }
176 default:
177 return SDValue();
178 }
179
180 RTLIB::LibcallImpl NewLCImpl = DAG.getLibcalls().getLibcallImpl(NewLC);
181 if (NewLCImpl == RTLIB::Unsupported)
182 return SDValue();
183
184 EVT PointerVT = TLI->getPointerTy(DAG.getDataLayout());
185 SDValue Symbol = DAG.getExternalSymbol(NewLCImpl, PointerVT);
186 Args.emplace_back(Size, DAG.getDataLayout().getIntPtrType(*DAG.getContext()));
187
190 CLI.setDebugLoc(DL)
191 .setChain(Chain)
193 RetTy, Symbol, std::move(Args))
194 .setTailCall(CanTailCall);
195
196 auto [Result, ChainOut] = TLI->LowerCallTo(CLI);
197 IsTailCall = CLI.IsTailCall;
198 return UsesResult ? DAG.getMergeValues({Result, ChainOut}, DL) : ChainOut;
199}
200
202 SelectionDAG &DAG, const SDLoc &DL, SDValue Chain, SDValue Dst, SDValue Src,
203 SDValue Size, Align DstAlign, Align SrcAlign, bool isVolatile,
204 bool AlwaysInline, bool &IsTailCall, MachinePointerInfo DstPtrInfo,
205 MachinePointerInfo SrcPtrInfo) const {
206 const AArch64Subtarget &STI =
208
209 if (STI.getCLOpts().use_mops && STI.hasMOPS())
210 return EmitMOPS(AArch64::MOPSMemoryCopyPseudo, DAG, DL, Chain, Dst, Src,
211 Size, DstAlign, SrcAlign, isVolatile, DstPtrInfo,
212 SrcPtrInfo);
213
215 SMEAttrs Attrs = AFI->getSMEFnAttrs();
216 if (STI.getCLOpts().lower_to_sme_routines &&
217 !Attrs.hasNonStreamingInterfaceAndBody())
218 return EmitStreamingCompatibleMemLibCall(DAG, DL, Chain, Dst, Src, Size,
219 RTLIB::MEMCPY, IsTailCall);
220
221 IsTailCall = false;
222 return SDValue();
223}
224
226 SelectionDAG &DAG, const SDLoc &dl, SDValue Chain, SDValue Dst, SDValue Src,
227 SDValue Size, Align Alignment, bool isVolatile, bool AlwaysInline,
228 bool &IsTailCall, MachinePointerInfo DstPtrInfo) const {
229 const AArch64Subtarget &STI =
231
232 if (STI.getCLOpts().use_mops && STI.hasMOPS())
233 return EmitMOPS(AArch64::MOPSMemorySetPseudo, DAG, dl, Chain, Dst, Src,
234 Size, Alignment, Alignment, isVolatile, DstPtrInfo,
236
238 SMEAttrs Attrs = AFI->getSMEFnAttrs();
239 if (STI.getCLOpts().lower_to_sme_routines &&
240 !Attrs.hasNonStreamingInterfaceAndBody())
241 return EmitStreamingCompatibleMemLibCall(DAG, dl, Chain, Dst, Src, Size,
242 RTLIB::MEMSET, IsTailCall);
243
244 IsTailCall = false;
245 return SDValue();
246}
247
249 SelectionDAG &DAG, const SDLoc &dl, SDValue Chain, SDValue Dst, SDValue Src,
250 SDValue Size, Align DstAlign, Align SrcAlign, bool isVolatile,
251 bool &IsTailCall, MachinePointerInfo DstPtrInfo,
252 MachinePointerInfo SrcPtrInfo) const {
253 const AArch64Subtarget &STI =
255
256 if (STI.getCLOpts().use_mops && STI.hasMOPS())
257 return EmitMOPS(AArch64::MOPSMemoryMovePseudo, DAG, dl, Chain, Dst, Src,
258 Size, DstAlign, SrcAlign, isVolatile, DstPtrInfo,
259 SrcPtrInfo);
260
262 SMEAttrs Attrs = AFI->getSMEFnAttrs();
263 if (STI.getCLOpts().lower_to_sme_routines &&
264 !Attrs.hasNonStreamingInterfaceAndBody())
265 return EmitStreamingCompatibleMemLibCall(DAG, dl, Chain, Dst, Src, Size,
266 RTLIB::MEMMOVE, IsTailCall);
267
268 IsTailCall = false;
269 return SDValue();
270}
271
273 SelectionDAG &DAG, const SDLoc &dl, SDValue Chain, SDValue Src,
274 SDValue Char, SDValue Length, MachinePointerInfo SrcPtrInfo) const {
276 SMEAttrs Attrs = AFI->getSMEFnAttrs();
277 if (DAG.getSubtarget<AArch64Subtarget>().getCLOpts().lower_to_sme_routines &&
278 !Attrs.hasNonStreamingInterfaceAndBody()) {
279 bool IsTailCall = false;
281 DAG, dl, Chain, Src, Char, Length, RTLIB::MEMCHR, IsTailCall);
282 return std::make_pair(Result.getValue(0), Result.getValue(1));
283 }
284 return std::make_pair(SDValue(), SDValue());
285}
286
287static const int kSetTagLoopThreshold = 176;
288
290 SDValue Chain, SDValue Ptr, uint64_t ObjSize,
291 const MachineMemOperand *BaseMemOperand,
292 bool ZeroData) {
294 unsigned ObjSizeScaled = ObjSize / 16;
295
296 SDValue TagSrc = Ptr;
297 if (Ptr.getOpcode() == ISD::FrameIndex) {
298 int FI = cast<FrameIndexSDNode>(Ptr)->getIndex();
299 Ptr = DAG.getTargetFrameIndex(FI, MVT::i64);
300 // A frame index operand may end up as [SP + offset] => it is fine to use SP
301 // register as the tag source.
302 TagSrc = DAG.getRegister(AArch64::SP, MVT::i64);
303 }
304
305 const unsigned OpCode1 = ZeroData ? AArch64ISD::STZG : AArch64ISD::STG;
306 const unsigned OpCode2 = ZeroData ? AArch64ISD::STZ2G : AArch64ISD::ST2G;
307
308 SmallVector<SDValue, 8> OutChains;
309 unsigned OffsetScaled = 0;
310 while (OffsetScaled < ObjSizeScaled) {
311 if (ObjSizeScaled - OffsetScaled >= 2) {
312 SDValue AddrNode = DAG.getMemBasePlusOffset(
313 Ptr, TypeSize::getFixed(OffsetScaled * 16), dl);
315 OpCode2, dl, DAG.getVTList(MVT::Other),
316 {Chain, TagSrc, AddrNode},
317 MVT::v4i64,
318 MF.getMachineMemOperand(BaseMemOperand, OffsetScaled * 16, 16 * 2));
319 OffsetScaled += 2;
320 OutChains.push_back(St);
321 continue;
322 }
323
324 if (ObjSizeScaled - OffsetScaled > 0) {
325 SDValue AddrNode = DAG.getMemBasePlusOffset(
326 Ptr, TypeSize::getFixed(OffsetScaled * 16), dl);
328 OpCode1, dl, DAG.getVTList(MVT::Other),
329 {Chain, TagSrc, AddrNode},
330 MVT::v2i64,
331 MF.getMachineMemOperand(BaseMemOperand, OffsetScaled * 16, 16));
332 OffsetScaled += 1;
333 OutChains.push_back(St);
334 }
335 }
336
337 SDValue Res = DAG.getNode(ISD::TokenFactor, dl, MVT::Other, OutChains);
338 return Res;
339}
340
342 SelectionDAG &DAG, const SDLoc &dl, SDValue Chain, SDValue Addr,
343 SDValue Size, MachinePointerInfo DstPtrInfo, bool ZeroData) const {
344 uint64_t ObjSize = Size->getAsZExtVal();
345 assert(ObjSize % 16 == 0);
346
348 MachineMemOperand *BaseMemOperand = MF.getMachineMemOperand(
349 DstPtrInfo, MachineMemOperand::MOStore, ObjSize, Align(16));
350
351 bool UseSetTagRangeLoop =
352 kSetTagLoopThreshold >= 0 && (int)ObjSize >= kSetTagLoopThreshold;
353 if (!UseSetTagRangeLoop)
354 return EmitUnrolledSetTag(DAG, dl, Chain, Addr, ObjSize, BaseMemOperand,
355 ZeroData);
356
357 const EVT ResTys[] = {MVT::i64, MVT::i64, MVT::Other};
358
359 unsigned Opcode;
360 if (Addr.getOpcode() == ISD::FrameIndex) {
361 int FI = cast<FrameIndexSDNode>(Addr)->getIndex();
362 Addr = DAG.getTargetFrameIndex(FI, MVT::i64);
363 Opcode = ZeroData ? AArch64::STZGloop : AArch64::STGloop;
364 } else {
365 Opcode = ZeroData ? AArch64::STZGloop_wback : AArch64::STGloop_wback;
366 }
367 SDValue Ops[] = {DAG.getTargetConstant(ObjSize, dl, MVT::i64), Addr, Chain};
368 SDNode *St = DAG.getMachineNode(Opcode, dl, ResTys, Ops);
369
370 DAG.setNodeMemRefs(cast<MachineSDNode>(St), {BaseMemOperand});
371 return SDValue(St, 2);
372}
return SDValue()
const TargetLowering & TLI
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 const int kSetTagLoopThreshold
uint64_t 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...
SDValue EmitTargetCodeForMemset(SelectionDAG &DAG, const SDLoc &dl, SDValue Chain, SDValue Dst, SDValue Src, SDValue Size, Align Alignment, bool isVolatile, bool AlwaysInline, bool &IsTailCall, MachinePointerInfo DstPtrInfo) const override
Emit target-specific code that performs a memset.
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 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, bool &IsTailCall, MachinePointerInfo DstPtrInfo, MachinePointerInfo SrcPtrInfo) const override
Emit target-specific code that performs a memmove.
SDValue EmitStreamingCompatibleMemLibCall(SelectionDAG &DAG, const SDLoc &DL, SDValue Chain, SDValue Op0, SDValue Op1, SDValue Size, RTLIB::Libcall LC, bool &IsTailCall) const
SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, const SDLoc &dl, SDValue Chain, SDValue Dst, SDValue Src, SDValue Size, Align DstAlign, Align SrcAlign, bool isVolatile, bool AlwaysInline, bool &IsTailCall, 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 AArch64Options & getCLOpts() const
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...
const TargetSubtargetInfo & getSubtarget() const
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:352
static LLVM_ABI IntegerType * getInt32Ty(LLVMContext &C)
Definition Type.cpp:294
@ ANY_EXTEND
ANY_EXTEND - Used for integer types. The high bits are undefined.
Definition ISDOpcodes.h:885
@ TokenFactor
TokenFactor - This node takes multiple tokens as input and produces a single token result.
Definition ISDOpcodes.h:55
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:388
TypeSize getSizeInBits() const
Return the size of the specified value type in bits.
Definition ValueTypes.h:411
bool isVector() const
Return true if this is a vector value type.
Definition ValueTypes.h:191
bool isInteger() const
Return true if this is an integer or a vector integer type.
Definition ValueTypes.h:175
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 & setTailCall(bool Value=true)
CallLoweringInfo & setChain(SDValue InChain)