Lines Matching refs:DL

304 static MachineBasicBlock *LowerFPToInt(MachineInstr &MI, DebugLoc DL,  in LowerFPToInt()  argument
362 BuildMI(BB, DL, TII.get(Abs), Tmp0).addReg(InReg); in LowerFPToInt()
364 BuildMI(BB, DL, TII.get(FConst), Tmp1) in LowerFPToInt()
366 BuildMI(BB, DL, TII.get(LT), CmpReg).addReg(Tmp0).addReg(Tmp1); in LowerFPToInt()
374 BuildMI(BB, DL, TII.get(FConst), Tmp1) in LowerFPToInt()
376 BuildMI(BB, DL, TII.get(GE), SecondCmpReg).addReg(Tmp0).addReg(Tmp1); in LowerFPToInt()
377 BuildMI(BB, DL, TII.get(And), AndReg).addReg(CmpReg).addReg(SecondCmpReg); in LowerFPToInt()
381 BuildMI(BB, DL, TII.get(Eqz), EqzReg).addReg(CmpReg); in LowerFPToInt()
385 BuildMI(BB, DL, TII.get(WebAssembly::BR_IF)).addMBB(TrueMBB).addReg(EqzReg); in LowerFPToInt()
386 BuildMI(FalseMBB, DL, TII.get(LoweredOpcode), FalseReg).addReg(InReg); in LowerFPToInt()
387 BuildMI(FalseMBB, DL, TII.get(WebAssembly::BR)).addMBB(DoneMBB); in LowerFPToInt()
388 BuildMI(TrueMBB, DL, TII.get(IConst), TrueReg).addImm(Substitute); in LowerFPToInt()
389 BuildMI(*DoneMBB, DoneMBB->begin(), DL, TII.get(TargetOpcode::PHI), OutReg) in LowerFPToInt()
401 DebugLoc DL = MI.getDebugLoc(); in EmitInstrWithCustomInserter() local
407 return LowerFPToInt(MI, DL, BB, TII, false, false, false, in EmitInstrWithCustomInserter()
410 return LowerFPToInt(MI, DL, BB, TII, true, false, false, in EmitInstrWithCustomInserter()
413 return LowerFPToInt(MI, DL, BB, TII, false, true, false, in EmitInstrWithCustomInserter()
416 return LowerFPToInt(MI, DL, BB, TII, true, true, false, in EmitInstrWithCustomInserter()
419 return LowerFPToInt(MI, DL, BB, TII, false, false, true, in EmitInstrWithCustomInserter()
422 return LowerFPToInt(MI, DL, BB, TII, true, false, true, in EmitInstrWithCustomInserter()
425 return LowerFPToInt(MI, DL, BB, TII, false, true, true, in EmitInstrWithCustomInserter()
428 return LowerFPToInt(MI, DL, BB, TII, true, true, true, in EmitInstrWithCustomInserter()
486 bool WebAssemblyTargetLowering::isLegalAddressingMode(const DataLayout &DL, in isLegalAddressingMode() argument
524 EVT WebAssemblyTargetLowering::getSetCCResultType(const DataLayout &DL, in getSetCCResultType() argument
530 return TargetLowering::getSetCCResultType(DL, C, VT); in getSetCCResultType()
581 static void fail(const SDLoc &DL, SelectionDAG &DAG, const char *msg) { in fail() argument
584 DiagnosticInfoUnsupported(MF.getFunction(), msg, DL.getDebugLoc())); in fail()
604 SDLoc DL = CLI.DL; in LowerCall() local
612 fail(DL, DAG, in LowerCall()
616 fail(DL, DAG, "WebAssembly doesn't support patch point yet"); in LowerCall()
623 fail(DL, DAG, "WebAssembly doesn't support tail call yet"); in LowerCall()
628 fail(DL, DAG, "WebAssembly doesn't support more than 1 returned value yet"); in LowerCall()
637 fail(DL, DAG, "WebAssembly hasn't implemented nest arguments"); in LowerCall()
639 fail(DL, DAG, "WebAssembly hasn't implemented inalloca arguments"); in LowerCall()
641 fail(DL, DAG, "WebAssembly hasn't implemented cons regs arguments"); in LowerCall()
643 fail(DL, DAG, "WebAssembly hasn't implemented cons regs last arguments"); in LowerCall()
650 DAG.getConstant(Out.Flags.getByValSize(), DL, MVT::i32); in LowerCall()
653 Chain, DL, FINode, OutVal, SizeNode, Out.Flags.getByValAlign(), in LowerCall()
705 SDValue Add = DAG.getNode(ISD::ADD, DL, PtrVT, FINode, in LowerCall()
706 DAG.getConstant(Offset, DL, PtrVT)); in LowerCall()
708 DAG.getStore(Chain, DL, Arg, Add, in LowerCall()
712 Chain = DAG.getNode(ISD::TokenFactor, DL, MVT::Other, Chains); in LowerCall()
714 FINode = DAG.getIntPtrConstant(0, DL); in LowerCall()
735 fail(DL, DAG, "WebAssembly hasn't implemented inalloca return values"); in LowerCall()
737 fail(DL, DAG, "WebAssembly hasn't implemented cons regs return values"); in LowerCall()
739 fail(DL, DAG, in LowerCall()
749 DL, InTyList, Ops); in LowerCall()
771 const SmallVectorImpl<SDValue> &OutVals, const SDLoc &DL, in LowerReturn() argument
775 fail(DL, DAG, "WebAssembly doesn't support non-C calling conventions"); in LowerReturn()
779 Chain = DAG.getNode(WebAssemblyISD::RETURN, DL, MVT::Other, RetOps); in LowerReturn()
787 fail(DL, DAG, "WebAssembly hasn't implemented inalloca results"); in LowerReturn()
789 fail(DL, DAG, "WebAssembly hasn't implemented cons regs results"); in LowerReturn()
791 fail(DL, DAG, "WebAssembly hasn't implemented cons regs last results"); in LowerReturn()
799 const SmallVectorImpl<ISD::InputArg> &Ins, const SDLoc &DL, in LowerFormalArguments() argument
802 fail(DL, DAG, "WebAssembly doesn't support non-C calling conventions"); in LowerFormalArguments()
813 fail(DL, DAG, "WebAssembly hasn't implemented inalloca arguments"); in LowerFormalArguments()
815 fail(DL, DAG, "WebAssembly hasn't implemented nest arguments"); in LowerFormalArguments()
817 fail(DL, DAG, "WebAssembly hasn't implemented cons regs arguments"); in LowerFormalArguments()
819 fail(DL, DAG, "WebAssembly hasn't implemented cons regs last arguments"); in LowerFormalArguments()
822 InVals.push_back(In.Used ? DAG.getNode(WebAssemblyISD::ARGUMENT, DL, In.VT, in LowerFormalArguments()
824 DL, MVT::i32)) in LowerFormalArguments()
839 Chain, DL, VarargVreg, in LowerFormalArguments()
840 DAG.getNode(WebAssemblyISD::ARGUMENT, DL, PtrVT, in LowerFormalArguments()
841 DAG.getTargetConstant(Ins.size(), DL, MVT::i32))); in LowerFormalArguments()
867 SDLoc DL(Op); in LowerOperation() local
886 fail(DL, DAG, "WebAssembly hasn't implemented computed gotos"); in LowerOperation()
889 fail(DL, DAG, "WebAssembly hasn't implemented __builtin_return_address"); in LowerOperation()
923 SDLoc DL(Op); in LowerCopyToReg() local
928 DL, VT, Src), in LowerCopyToReg()
931 ? DAG.getCopyToReg(Chain, DL, Reg, Copy) in LowerCopyToReg()
932 : DAG.getCopyToReg(Chain, DL, Reg, Copy, in LowerCopyToReg()
962 SDLoc DL(Op); in LowerGlobalAddress() local
968 fail(DL, DAG, "WebAssembly only expects the 0 address space"); in LowerGlobalAddress()
970 WebAssemblyISD::Wrapper, DL, VT, in LowerGlobalAddress()
971 DAG.getTargetGlobalAddress(GA->getGlobal(), DL, VT, GA->getOffset())); in LowerGlobalAddress()
977 SDLoc DL(Op); in LowerExternalSymbol() local
988 WebAssemblyISD::Wrapper, DL, VT, in LowerExternalSymbol()
1005 SDLoc DL(Op); in LowerBR_JT() local
1027 return DAG.getNode(WebAssemblyISD::BR_TABLE, DL, MVT::Other, Ops); in LowerBR_JT()
1032 SDLoc DL(Op); in LowerVASTART() local
1038 SDValue ArgN = DAG.getCopyFromReg(DAG.getEntryNode(), DL, in LowerVASTART()
1040 return DAG.getStore(Op.getOperand(0), DL, ArgN, Op.getOperand(1), in LowerVASTART()
1048 SDLoc DL(Op); in LowerINTRINSIC_WO_CHAIN() local
1061 return DAG.getNode(WebAssemblyISD::Wrapper, DL, VT, in LowerINTRINSIC_WO_CHAIN()
1072 SDLoc DL(Op); in LowerINTRINSIC_VOID() local
1086 DAG.getNode(WebAssemblyISD::Wrapper, DL, PtrVT, in LowerINTRINSIC_VOID()
1089 return DAG.getNode(WebAssemblyISD::THROW, DL, in LowerINTRINSIC_VOID()
1124 SDLoc DL(Op); in LowerVECTOR_SHUFFLE() local
1142 Ops[OpIdx++] = DAG.getConstant(ByteIndex, DL, MVT::i32); in LowerVECTOR_SHUFFLE()
1146 return DAG.getNode(WebAssemblyISD::SHUFFLE, DL, Op.getValueType(), Ops); in LowerVECTOR_SHUFFLE()
1167 SDLoc DL(Op); in UnrollVectorShift() local
1172 DL, ShiftVal.getValueType(), // masked value type in UnrollVectorShift()
1174 DAG.getConstant(MaskVal, DL, ShiftVal.getValueType()) // mask operand in UnrollVectorShift()
1179 DL, Op.getValueType(), // original return type in UnrollVectorShift()
1188 SDLoc DL(Op); in LowerShift() local
1226 return DAG.getNode(Opcode, DL, Op.getValueType(), Op.getOperand(0), in LowerShift()
1227 DAG.getConstant(Shift, DL, MVT::i32)); in LowerShift()