1 //===-- ARMISelLowering.h - ARM DAG Lowering Interface ----------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines the interfaces that ARM uses to lower LLVM code into a
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_LIB_TARGET_ARM_ARMISELLOWERING_H
16 #define LLVM_LIB_TARGET_ARM_ARMISELLOWERING_H
18 #include "MCTargetDesc/ARMBaseInfo.h"
19 #include "llvm/CodeGen/CallingConvLower.h"
20 #include "llvm/CodeGen/SelectionDAG.h"
21 #include "llvm/Target/TargetLowering.h"
25 class ARMConstantPoolValue;
29 // ARM Specific DAG Nodes
30 enum NodeType : unsigned {
31 // Start the numbering where the builtin ops and target ops leave off.
32 FIRST_NUMBER = ISD::BUILTIN_OP_END,
34 Wrapper, // Wrapper - A wrapper node for TargetConstantPool,
35 // TargetExternalSymbol, and TargetGlobalAddress.
36 WrapperPIC, // WrapperPIC - A wrapper node for TargetGlobalAddress in
38 WrapperJT, // WrapperJT - A wrapper node for TargetJumpTable
40 // Add pseudo op to model memcpy for struct byval.
43 CALL, // Function call.
44 CALL_PRED, // Function call that's predicable.
45 CALL_NOLINK, // Function call with branch not branch-and-link.
46 tCALL, // Thumb function call.
47 BRCOND, // Conditional branch.
48 BR_JT, // Jumptable branch.
49 BR2_JT, // Jumptable branch (2 level - jumptable entry is a jump).
50 RET_FLAG, // Return with a flag operand.
51 INTRET_FLAG, // Interrupt return with an LR-offset and a flag operand.
53 PIC_ADD, // Add with a PC operand and a PIC label.
55 CMP, // ARM compare instructions.
56 CMN, // ARM CMN instructions.
57 CMPZ, // ARM compare that sets only Z flag.
58 CMPFP, // ARM VFP compare instruction, sets FPSCR.
59 CMPFPw0, // ARM VFP compare against zero instruction, sets FPSCR.
60 FMSTAT, // ARM fmstat instruction.
62 CMOV, // ARM conditional move instructions.
66 RBIT, // ARM bitreverse instruction
68 SRL_FLAG, // V,Flag = srl_flag X -> srl X, 1 + save carry out.
69 SRA_FLAG, // V,Flag = sra_flag X -> sra X, 1 + save carry out.
70 RRX, // V = RRX X, Flag -> srl X, 1 + shift in carry flag.
72 ADDC, // Add with carry
73 ADDE, // Add using carry
74 SUBC, // Sub with carry
75 SUBE, // Sub using carry
77 VMOVRRD, // double to two gprs.
78 VMOVDRR, // Two gprs to double.
80 EH_SJLJ_SETJMP, // SjLj exception handling setjmp.
81 EH_SJLJ_LONGJMP, // SjLj exception handling longjmp.
83 TC_RETURN, // Tail call return pseudo.
87 DYN_ALLOC, // Dynamic allocation on the stack.
89 MEMBARRIER_MCR, // Memory barrier (MCR)
93 WIN__CHKSTK, // Windows' __chkstk call to do stack probing.
95 VCEQ, // Vector compare equal.
96 VCEQZ, // Vector compare equal to zero.
97 VCGE, // Vector compare greater than or equal.
98 VCGEZ, // Vector compare greater than or equal to zero.
99 VCLEZ, // Vector compare less than or equal to zero.
100 VCGEU, // Vector compare unsigned greater than or equal.
101 VCGT, // Vector compare greater than.
102 VCGTZ, // Vector compare greater than zero.
103 VCLTZ, // Vector compare less than zero.
104 VCGTU, // Vector compare unsigned greater than.
105 VTST, // Vector test bits.
107 // Vector shift by immediate:
109 VSHRs, // ...right (signed)
110 VSHRu, // ...right (unsigned)
112 // Vector rounding shift by immediate:
113 VRSHRs, // ...right (signed)
114 VRSHRu, // ...right (unsigned)
115 VRSHRN, // ...right narrow
117 // Vector saturating shift by immediate:
118 VQSHLs, // ...left (signed)
119 VQSHLu, // ...left (unsigned)
120 VQSHLsu, // ...left (signed to unsigned)
121 VQSHRNs, // ...right narrow (signed)
122 VQSHRNu, // ...right narrow (unsigned)
123 VQSHRNsu, // ...right narrow (signed to unsigned)
125 // Vector saturating rounding shift by immediate:
126 VQRSHRNs, // ...right narrow (signed)
127 VQRSHRNu, // ...right narrow (unsigned)
128 VQRSHRNsu, // ...right narrow (signed to unsigned)
130 // Vector shift and insert:
134 // Vector get lane (VMOV scalar to ARM core register)
135 // (These are used for 8- and 16-bit element types only.)
136 VGETLANEu, // zero-extend vector extract element
137 VGETLANEs, // sign-extend vector extract element
139 // Vector move immediate and move negated immediate:
143 // Vector move f32 immediate:
152 VREV64, // reverse elements within 64-bit doublewords
153 VREV32, // reverse elements within 32-bit words
154 VREV16, // reverse elements within 16-bit halfwords
155 VZIP, // zip (interleave)
156 VUZP, // unzip (deinterleave)
158 VTBL1, // 1-register shuffle with mask
159 VTBL2, // 2-register shuffle with mask
161 // Vector multiply long:
163 VMULLu, // ...unsigned
165 UMLAL, // 64bit Unsigned Accumulate Multiply
166 SMLAL, // 64bit Signed Accumulate Multiply
168 // Operands of the standard BUILD_VECTOR node are not legalized, which
169 // is fine if BUILD_VECTORs are always lowered to shuffles or other
170 // operations, but for ARM some BUILD_VECTORs are legal as-is and their
171 // operands need to be legalized. Define an ARM-specific version of
172 // BUILD_VECTOR for this purpose.
175 // Floating-point max and min:
184 // Vector OR with immediate
186 // Vector AND with NOT of immediate
189 // Vector bitwise select
192 // Pseudo-instruction representing a memory copy using ldm/stm
196 // Vector load N-element structure to all lanes:
197 VLD2DUP = ISD::FIRST_TARGET_MEMORY_OPCODE,
201 // NEON loads with post-increment base updates:
213 // NEON stores with post-increment base updates:
224 /// Define some predicates that are used for node matching.
226 bool isBitFieldInvertedMask(unsigned v);
229 //===--------------------------------------------------------------------===//
230 // ARMTargetLowering - ARM Implementation of the TargetLowering interface
232 class ARMTargetLowering : public TargetLowering {
234 explicit ARMTargetLowering(const TargetMachine &TM,
235 const ARMSubtarget &STI);
237 unsigned getJumpTableEncoding() const override;
238 bool useSoftFloat() const override;
240 SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const override;
242 /// ReplaceNodeResults - Replace the results of node with an illegal result
243 /// type with new values built out of custom code.
245 void ReplaceNodeResults(SDNode *N, SmallVectorImpl<SDValue>&Results,
246 SelectionDAG &DAG) const override;
248 const char *getTargetNodeName(unsigned Opcode) const override;
250 bool isSelectSupported(SelectSupportKind Kind) const override {
251 // ARM does not support scalar condition selects on vectors.
252 return (Kind != ScalarCondVectorVal);
255 /// getSetCCResultType - Return the value type to use for ISD::SETCC.
256 EVT getSetCCResultType(LLVMContext &Context, EVT VT) const override;
259 EmitInstrWithCustomInserter(MachineInstr *MI,
260 MachineBasicBlock *MBB) const override;
262 void AdjustInstrPostInstrSelection(MachineInstr *MI,
263 SDNode *Node) const override;
265 SDValue PerformCMOVCombine(SDNode *N, SelectionDAG &DAG) const;
266 SDValue PerformDAGCombine(SDNode *N, DAGCombinerInfo &DCI) const override;
268 bool isDesirableToTransformToIntegerOp(unsigned Opc, EVT VT) const override;
270 /// allowsMisalignedMemoryAccesses - Returns true if the target allows
271 /// unaligned memory accesses of the specified type. Returns whether it
272 /// is "fast" by reference in the second argument.
273 bool allowsMisalignedMemoryAccesses(EVT VT, unsigned AddrSpace,
275 bool *Fast) const override;
277 EVT getOptimalMemOpType(uint64_t Size,
278 unsigned DstAlign, unsigned SrcAlign,
279 bool IsMemset, bool ZeroMemset,
281 MachineFunction &MF) const override;
283 using TargetLowering::isZExtFree;
284 bool isZExtFree(SDValue Val, EVT VT2) const override;
286 bool isVectorLoadExtDesirable(SDValue ExtVal) const override;
288 bool allowTruncateForTailCall(Type *Ty1, Type *Ty2) const override;
291 /// isLegalAddressingMode - Return true if the addressing mode represented
292 /// by AM is legal for this target, for a load/store of the specified type.
293 bool isLegalAddressingMode(const AddrMode &AM, Type *Ty) const override;
294 bool isLegalT2ScaledAddressingMode(const AddrMode &AM, EVT VT) const;
296 /// isLegalICmpImmediate - Return true if the specified immediate is legal
297 /// icmp immediate, that is the target has icmp instructions which can
298 /// compare a register against the immediate without having to materialize
299 /// the immediate into a register.
300 bool isLegalICmpImmediate(int64_t Imm) const override;
302 /// isLegalAddImmediate - Return true if the specified immediate is legal
303 /// add immediate, that is the target has add instructions which can
304 /// add a register and the immediate without having to materialize
305 /// the immediate into a register.
306 bool isLegalAddImmediate(int64_t Imm) const override;
308 /// getPreIndexedAddressParts - returns true by value, base pointer and
309 /// offset pointer and addressing mode by reference if the node's address
310 /// can be legally represented as pre-indexed load / store address.
311 bool getPreIndexedAddressParts(SDNode *N, SDValue &Base, SDValue &Offset,
312 ISD::MemIndexedMode &AM,
313 SelectionDAG &DAG) const override;
315 /// getPostIndexedAddressParts - returns true by value, base pointer and
316 /// offset pointer and addressing mode by reference if this node can be
317 /// combined with a load / store to form a post-indexed load / store.
318 bool getPostIndexedAddressParts(SDNode *N, SDNode *Op, SDValue &Base,
319 SDValue &Offset, ISD::MemIndexedMode &AM,
320 SelectionDAG &DAG) const override;
322 void computeKnownBitsForTargetNode(const SDValue Op, APInt &KnownZero,
324 const SelectionDAG &DAG,
325 unsigned Depth) const override;
328 bool ExpandInlineAsm(CallInst *CI) const override;
331 getConstraintType(const std::string &Constraint) const override;
333 /// Examine constraint string and operand type and determine a weight value.
334 /// The operand object must already have been set up with the operand type.
335 ConstraintWeight getSingleConstraintMatchWeight(
336 AsmOperandInfo &info, const char *constraint) const override;
338 std::pair<unsigned, const TargetRegisterClass *>
339 getRegForInlineAsmConstraint(const TargetRegisterInfo *TRI,
340 const std::string &Constraint,
341 MVT VT) const override;
343 /// LowerAsmOperandForConstraint - Lower the specified operand into the Ops
344 /// vector. If it is invalid, don't add anything to Ops. If hasMemory is
345 /// true it means one of the asm constraint of the inline asm instruction
346 /// being processed is 'm'.
347 void LowerAsmOperandForConstraint(SDValue Op, std::string &Constraint,
348 std::vector<SDValue> &Ops,
349 SelectionDAG &DAG) const override;
351 unsigned getInlineAsmMemConstraint(
352 const std::string &ConstraintCode) const override {
353 // FIXME: Map different constraints differently.
354 return InlineAsm::Constraint_m;
357 const ARMSubtarget* getSubtarget() const {
361 /// getRegClassFor - Return the register class that should be used for the
362 /// specified value type.
363 const TargetRegisterClass *getRegClassFor(MVT VT) const override;
365 /// Returns true if a cast between SrcAS and DestAS is a noop.
366 bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const override {
367 // Addrspacecasts are always noops.
371 bool shouldAlignPointerArgs(CallInst *CI, unsigned &MinSize,
372 unsigned &PrefAlign) const override;
374 /// createFastISel - This method returns a target specific FastISel object,
375 /// or null if the target does not support "fast" ISel.
376 FastISel *createFastISel(FunctionLoweringInfo &funcInfo,
377 const TargetLibraryInfo *libInfo) const override;
379 Sched::Preference getSchedulingPreference(SDNode *N) const override;
382 isShuffleMaskLegal(const SmallVectorImpl<int> &M, EVT VT) const override;
383 bool isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const override;
385 /// isFPImmLegal - Returns true if the target can instruction select the
386 /// specified FP immediate natively. If false, the legalizer will
387 /// materialize the FP immediate as a load from a constant pool.
388 bool isFPImmLegal(const APFloat &Imm, EVT VT) const override;
390 bool getTgtMemIntrinsic(IntrinsicInfo &Info,
392 unsigned Intrinsic) const override;
394 /// \brief Returns true if it is beneficial to convert a load of a constant
395 /// to just the constant itself.
396 bool shouldConvertConstantLoadToIntImm(const APInt &Imm,
397 Type *Ty) const override;
399 /// \brief Returns true if an argument of type Ty needs to be passed in a
400 /// contiguous block of registers in calling convention CallConv.
401 bool functionArgumentNeedsConsecutiveRegisters(
402 Type *Ty, CallingConv::ID CallConv, bool isVarArg) const override;
404 bool hasLoadLinkedStoreConditional() const override;
405 Instruction *makeDMB(IRBuilder<> &Builder, ARM_MB::MemBOpt Domain) const;
406 Value *emitLoadLinked(IRBuilder<> &Builder, Value *Addr,
407 AtomicOrdering Ord) const override;
408 Value *emitStoreConditional(IRBuilder<> &Builder, Value *Val,
409 Value *Addr, AtomicOrdering Ord) const override;
411 Instruction* emitLeadingFence(IRBuilder<> &Builder, AtomicOrdering Ord,
412 bool IsStore, bool IsLoad) const override;
413 Instruction* emitTrailingFence(IRBuilder<> &Builder, AtomicOrdering Ord,
414 bool IsStore, bool IsLoad) const override;
416 bool shouldExpandAtomicLoadInIR(LoadInst *LI) const override;
417 bool shouldExpandAtomicStoreInIR(StoreInst *SI) const override;
418 TargetLoweringBase::AtomicRMWExpansionKind
419 shouldExpandAtomicRMWInIR(AtomicRMWInst *AI) const override;
421 bool useLoadStackGuardNode() const override;
423 bool canCombineStoreAndExtract(Type *VectorTy, Value *Idx,
424 unsigned &Cost) const override;
427 std::pair<const TargetRegisterClass *, uint8_t>
428 findRepresentativeClass(const TargetRegisterInfo *TRI,
429 MVT VT) const override;
432 /// Subtarget - Keep a pointer to the ARMSubtarget around so that we can
433 /// make the right decision when generating code for different targets.
434 const ARMSubtarget *Subtarget;
436 const TargetRegisterInfo *RegInfo;
438 const InstrItineraryData *Itins;
440 /// ARMPCLabelIndex - Keep track of the number of ARM PC labels created.
442 unsigned ARMPCLabelIndex;
444 void addTypeForNEON(MVT VT, MVT PromotedLdStVT, MVT PromotedBitwiseVT);
445 void addDRTypeForNEON(MVT VT);
446 void addQRTypeForNEON(MVT VT);
447 std::pair<SDValue, SDValue> getARMXALUOOp(SDValue Op, SelectionDAG &DAG, SDValue &ARMcc) const;
449 typedef SmallVector<std::pair<unsigned, SDValue>, 8> RegsToPassVector;
450 void PassF64ArgInRegs(SDLoc dl, SelectionDAG &DAG,
451 SDValue Chain, SDValue &Arg,
452 RegsToPassVector &RegsToPass,
453 CCValAssign &VA, CCValAssign &NextVA,
455 SmallVectorImpl<SDValue> &MemOpChains,
456 ISD::ArgFlagsTy Flags) const;
457 SDValue GetF64FormalArgument(CCValAssign &VA, CCValAssign &NextVA,
458 SDValue &Root, SelectionDAG &DAG,
461 CallingConv::ID getEffectiveCallingConv(CallingConv::ID CC,
462 bool isVarArg) const;
463 CCAssignFn *CCAssignFnForNode(CallingConv::ID CC, bool Return,
464 bool isVarArg) const;
465 SDValue LowerMemOpCallTo(SDValue Chain, SDValue StackPtr, SDValue Arg,
466 SDLoc dl, SelectionDAG &DAG,
467 const CCValAssign &VA,
468 ISD::ArgFlagsTy Flags) const;
469 SDValue LowerEH_SJLJ_SETJMP(SDValue Op, SelectionDAG &DAG) const;
470 SDValue LowerEH_SJLJ_LONGJMP(SDValue Op, SelectionDAG &DAG) const;
471 SDValue LowerINTRINSIC_WO_CHAIN(SDValue Op, SelectionDAG &DAG,
472 const ARMSubtarget *Subtarget) const;
473 SDValue LowerBlockAddress(SDValue Op, SelectionDAG &DAG) const;
474 SDValue LowerGlobalAddressDarwin(SDValue Op, SelectionDAG &DAG) const;
475 SDValue LowerGlobalAddressELF(SDValue Op, SelectionDAG &DAG) const;
476 SDValue LowerGlobalAddressWindows(SDValue Op, SelectionDAG &DAG) const;
477 SDValue LowerGlobalTLSAddress(SDValue Op, SelectionDAG &DAG) const;
478 SDValue LowerToTLSGeneralDynamicModel(GlobalAddressSDNode *GA,
479 SelectionDAG &DAG) const;
480 SDValue LowerToTLSExecModels(GlobalAddressSDNode *GA,
482 TLSModel::Model model) const;
483 SDValue LowerGLOBAL_OFFSET_TABLE(SDValue Op, SelectionDAG &DAG) const;
484 SDValue LowerBR_JT(SDValue Op, SelectionDAG &DAG) const;
485 SDValue LowerXALUO(SDValue Op, SelectionDAG &DAG) const;
486 SDValue LowerSELECT(SDValue Op, SelectionDAG &DAG) const;
487 SDValue LowerSELECT_CC(SDValue Op, SelectionDAG &DAG) const;
488 SDValue LowerBR_CC(SDValue Op, SelectionDAG &DAG) const;
489 SDValue LowerFCOPYSIGN(SDValue Op, SelectionDAG &DAG) const;
490 SDValue LowerRETURNADDR(SDValue Op, SelectionDAG &DAG) const;
491 SDValue LowerFRAMEADDR(SDValue Op, SelectionDAG &DAG) const;
492 SDValue LowerShiftRightParts(SDValue Op, SelectionDAG &DAG) const;
493 SDValue LowerShiftLeftParts(SDValue Op, SelectionDAG &DAG) const;
494 SDValue LowerFLT_ROUNDS_(SDValue Op, SelectionDAG &DAG) const;
495 SDValue LowerConstantFP(SDValue Op, SelectionDAG &DAG,
496 const ARMSubtarget *ST) const;
497 SDValue LowerBUILD_VECTOR(SDValue Op, SelectionDAG &DAG,
498 const ARMSubtarget *ST) const;
499 SDValue LowerFSINCOS(SDValue Op, SelectionDAG &DAG) const;
500 SDValue LowerDivRem(SDValue Op, SelectionDAG &DAG) const;
501 SDValue LowerDYNAMIC_STACKALLOC(SDValue Op, SelectionDAG &DAG) const;
502 SDValue LowerFP_ROUND(SDValue Op, SelectionDAG &DAG) const;
503 SDValue LowerFP_EXTEND(SDValue Op, SelectionDAG &DAG) const;
504 SDValue LowerFP_TO_INT(SDValue Op, SelectionDAG &DAG) const;
505 SDValue LowerINT_TO_FP(SDValue Op, SelectionDAG &DAG) const;
507 unsigned getRegisterByName(const char* RegName, EVT VT) const override;
509 /// isFMAFasterThanFMulAndFAdd - Return true if an FMA operation is faster
510 /// than a pair of fmul and fadd instructions. fmuladd intrinsics will be
511 /// expanded to FMAs when this method returns true, otherwise fmuladd is
512 /// expanded to fmul + fadd.
514 /// ARM supports both fused and unfused multiply-add operations; we already
515 /// lower a pair of fmul and fadd to the latter so it's not clear that there
516 /// would be a gain or that the gain would be worthwhile enough to risk
517 /// correctness bugs.
518 bool isFMAFasterThanFMulAndFAdd(EVT VT) const override { return false; }
520 SDValue ReconstructShuffle(SDValue Op, SelectionDAG &DAG) const;
522 SDValue LowerCallResult(SDValue Chain, SDValue InFlag,
523 CallingConv::ID CallConv, bool isVarArg,
524 const SmallVectorImpl<ISD::InputArg> &Ins,
525 SDLoc dl, SelectionDAG &DAG,
526 SmallVectorImpl<SDValue> &InVals,
527 bool isThisReturn, SDValue ThisVal) const;
530 LowerFormalArguments(SDValue Chain,
531 CallingConv::ID CallConv, bool isVarArg,
532 const SmallVectorImpl<ISD::InputArg> &Ins,
533 SDLoc dl, SelectionDAG &DAG,
534 SmallVectorImpl<SDValue> &InVals) const override;
536 int StoreByValRegs(CCState &CCInfo, SelectionDAG &DAG,
537 SDLoc dl, SDValue &Chain,
538 const Value *OrigArg,
539 unsigned InRegsParamRecordIdx,
541 unsigned ArgSize) const;
543 void VarArgStyleRegisters(CCState &CCInfo, SelectionDAG &DAG,
544 SDLoc dl, SDValue &Chain,
546 unsigned TotalArgRegsSaveSize,
547 bool ForceMutable = false) const;
550 LowerCall(TargetLowering::CallLoweringInfo &CLI,
551 SmallVectorImpl<SDValue> &InVals) const override;
553 /// HandleByVal - Target-specific cleanup for ByVal support.
554 void HandleByVal(CCState *, unsigned &, unsigned) const override;
556 /// IsEligibleForTailCallOptimization - Check whether the call is eligible
557 /// for tail call optimization. Targets which want to do tail call
558 /// optimization should implement this function.
559 bool IsEligibleForTailCallOptimization(SDValue Callee,
560 CallingConv::ID CalleeCC,
562 bool isCalleeStructRet,
563 bool isCallerStructRet,
564 const SmallVectorImpl<ISD::OutputArg> &Outs,
565 const SmallVectorImpl<SDValue> &OutVals,
566 const SmallVectorImpl<ISD::InputArg> &Ins,
567 SelectionDAG& DAG) const;
569 bool CanLowerReturn(CallingConv::ID CallConv,
570 MachineFunction &MF, bool isVarArg,
571 const SmallVectorImpl<ISD::OutputArg> &Outs,
572 LLVMContext &Context) const override;
575 LowerReturn(SDValue Chain,
576 CallingConv::ID CallConv, bool isVarArg,
577 const SmallVectorImpl<ISD::OutputArg> &Outs,
578 const SmallVectorImpl<SDValue> &OutVals,
579 SDLoc dl, SelectionDAG &DAG) const override;
581 bool isUsedByReturnOnly(SDNode *N, SDValue &Chain) const override;
583 bool mayBeEmittedAsTailCall(CallInst *CI) const override;
585 SDValue getCMOV(SDLoc dl, EVT VT, SDValue FalseVal, SDValue TrueVal,
586 SDValue ARMcc, SDValue CCR, SDValue Cmp,
587 SelectionDAG &DAG) const;
588 SDValue getARMCmp(SDValue LHS, SDValue RHS, ISD::CondCode CC,
589 SDValue &ARMcc, SelectionDAG &DAG, SDLoc dl) const;
590 SDValue getVFPCmp(SDValue LHS, SDValue RHS,
591 SelectionDAG &DAG, SDLoc dl) const;
592 SDValue duplicateCmp(SDValue Cmp, SelectionDAG &DAG) const;
594 SDValue OptimizeVFPBrcond(SDValue Op, SelectionDAG &DAG) const;
596 void SetupEntryBlockForSjLj(MachineInstr *MI,
597 MachineBasicBlock *MBB,
598 MachineBasicBlock *DispatchBB, int FI) const;
600 void EmitSjLjDispatchBlock(MachineInstr *MI, MachineBasicBlock *MBB) const;
602 bool RemapAddSubWithFlags(MachineInstr *MI, MachineBasicBlock *BB) const;
604 MachineBasicBlock *EmitStructByval(MachineInstr *MI,
605 MachineBasicBlock *MBB) const;
607 MachineBasicBlock *EmitLowered__chkstk(MachineInstr *MI,
608 MachineBasicBlock *MBB) const;
611 enum NEONModImmType {
618 FastISel *createFastISel(FunctionLoweringInfo &funcInfo,
619 const TargetLibraryInfo *libInfo);
623 #endif // ARMISELLOWERING_H