| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/ |
| H A D | TargetLoweringBase.cpp | 233 RTLIB::Libcall RTLIB::getFPEXT(EVT OpVT, EVT RetVT) { in getFPEXT() argument 235 if (RetVT == MVT::f32) in getFPEXT() 237 if (RetVT == MVT::f64) in getFPEXT() 239 if (RetVT == MVT::f80) in getFPEXT() 241 if (RetVT == MVT::f128) in getFPEXT() 244 if (RetVT == MVT::f64) in getFPEXT() 246 if (RetVT == MVT::f128) in getFPEXT() 248 if (RetVT == MVT::ppcf128) in getFPEXT() 251 if (RetVT == MVT::f128) in getFPEXT() 253 else if (RetVT == MVT::ppcf128) in getFPEXT() [all …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/ |
| H A D | RuntimeLibcalls.h | 47 Libcall getFPEXT(EVT OpVT, EVT RetVT); 51 Libcall getFPROUND(EVT OpVT, EVT RetVT); 55 Libcall getFPTOSINT(EVT OpVT, EVT RetVT); 59 Libcall getFPTOUINT(EVT OpVT, EVT RetVT); 63 Libcall getSINTTOFP(EVT OpVT, EVT RetVT); 67 Libcall getUINTTOFP(EVT OpVT, EVT RetVT); 71 Libcall getPOWI(EVT RetVT);
|
| H A D | FastISel.h | 347 virtual unsigned fastEmit_(MVT VT, MVT RetVT, unsigned Opcode); 351 virtual unsigned fastEmit_r(MVT VT, MVT RetVT, unsigned Opcode, unsigned Op0); 355 virtual unsigned fastEmit_rr(MVT VT, MVT RetVT, unsigned Opcode, unsigned Op0, 361 virtual unsigned fastEmit_ri(MVT VT, MVT RetVT, unsigned Opcode, unsigned Op0, 374 virtual unsigned fastEmit_i(MVT VT, MVT RetVT, unsigned Opcode, uint64_t Imm); 379 virtual unsigned fastEmit_f(MVT VT, MVT RetVT, unsigned Opcode, 435 Register fastEmitInst_extractsubreg(MVT RetVT, unsigned Op0, uint32_t Idx);
|
| H A D | TargetLowering.h | 3629 EVT RetVT, ArrayRef<SDValue> Ops, 4371 MakeLibCallOptions &setTypeListBeforeSoften(ArrayRef<EVT> OpsVT, EVT RetVT, 4374 RetVTBeforeSoften = RetVT;
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/ |
| H A D | AArch64FastISel.cpp | 197 bool optimizeIntExtLoad(const Instruction *I, MVT RetVT, MVT SrcVT); 202 unsigned emitAddSub(bool UseAdd, MVT RetVT, const Value *LHS, 205 unsigned emitAddSub_rr(bool UseAdd, MVT RetVT, unsigned LHSReg, 208 unsigned emitAddSub_ri(bool UseAdd, MVT RetVT, unsigned LHSReg, 211 unsigned emitAddSub_rs(bool UseAdd, MVT RetVT, unsigned LHSReg, 215 unsigned emitAddSub_rx(bool UseAdd, MVT RetVT, unsigned LHSReg, 223 bool emitICmp(MVT RetVT, const Value *LHS, const Value *RHS, bool IsZExt); 224 bool emitICmp_ri(MVT RetVT, unsigned LHSReg, uint64_t Imm); 225 bool emitFCmp(MVT RetVT, const Value *LHS, const Value *RHS); 234 unsigned emitAdd(MVT RetVT, const Value *LHS, const Value *RHS, [all …]
|
| H A D | AArch64ISelLowering.cpp | 20934 const EVT RetVT = N->getValueType(0); in performGatherLoadCombine() local 20935 assert(RetVT.isScalableVector() && in performGatherLoadCombine() 20941 if (RetVT.getSizeInBits().getKnownMinValue() > AArch64::SVEBitsPerBlock) in performGatherLoadCombine() 20956 RetVT.getScalarSizeInBits()); in performGatherLoadCombine() 20978 RetVT.getScalarSizeInBits() / 8)) { in performGatherLoadCombine() 21004 EVT HwRetVt = getSVEContainerType(RetVT); in performGatherLoadCombine() 21009 SDValue OutVT = DAG.getValueType(RetVT); in performGatherLoadCombine() 21010 if (RetVT.isFloatingPoint()) in performGatherLoadCombine() 21021 if (RetVT.isInteger() && (RetVT != HwRetVt)) in performGatherLoadCombine() 21022 Load = DAG.getNode(ISD::TRUNCATE, DL, RetVT, Load.getValue(0)); in performGatherLoadCombine() [all …]
|
| /openbsd-src/gnu/llvm/llvm/utils/TableGen/ |
| H A D | FastISelEmitter.cpp | 513 MVT::SimpleValueType RetVT = MVT::isVoid; in collectPatterns() local 514 if (InstPatNode->getNumTypes()) RetVT = InstPatNode->getSimpleType(0); in collectPatterns() 515 MVT::SimpleValueType VT = RetVT; in collectPatterns() 586 std::make_tuple(Operands, OpcodeName, VT, RetVT, PredicateCheck)); in collectPatterns() 594 SimplePatterns[Operands][OpcodeName][VT][RetVT].emplace(complexity, in collectPatterns() 704 MVT::SimpleValueType RetVT = RI.first; in printFunctionDefinitions() local 709 << getLegalCName(std::string(getName(RetVT))) << "_"; in printFunctionDefinitions() 715 emitInstructionCode(OS, Operands, PM, std::string(getName(RetVT))); in printFunctionDefinitions() 728 MVT::SimpleValueType RetVT = RI.first; in printFunctionDefinitions() local 729 OS << " case " << getName(RetVT) << ": return fastEmit_" in printFunctionDefinitions() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/PowerPC/ |
| H A D | PPCFastISel.cpp | 191 bool finishCall(MVT RetVT, CallLoweringInfo &CLI, unsigned &NumBytes); 1489 bool PPCFastISel::finishCall(MVT RetVT, CallLoweringInfo &CLI, unsigned &NumBytes) { in finishCall() argument 1500 if (RetVT != MVT::isVoid) { in finishCall() 1503 CCInfo.AnalyzeCallResult(RetVT, RetCC_PPC64_ELF_FIS); in finishCall() 1513 if (RetVT == MVT::i8 || RetVT == MVT::i16 || RetVT == MVT::i32) in finishCall() 1519 if (RetVT == CopyVT) { in finishCall() 1525 ResultReg = createResultReg(TLI.getRegClassFor(RetVT)); in finishCall() 1533 } else if (RetVT == MVT::i8 || RetVT == MVT::i16 || RetVT == MVT::i32) { in finishCall() 1573 MVT RetVT; in fastLowerCall() local 1575 RetVT = MVT::isVoid; in fastLowerCall() [all …]
|
| H A D | PPCISelLowering.cpp | 18065 EVT RetVT = Op.getValueType(); in lowerToLibCall() local 18066 Type *RetTy = RetVT.getTypeForEVT(*DAG.getContext()); in lowerToLibCall() 18069 bool SignExtend = TLI.shouldSignExtendTypeInLibCall(RetVT, false); in lowerToLibCall()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/ARM/ |
| H A D | ARMFastISel.cpp | 225 bool FinishCall(MVT RetVT, SmallVectorImpl<Register> &UsedRegs, 2021 bool ARMFastISel::FinishCall(MVT RetVT, SmallVectorImpl<Register> &UsedRegs, in FinishCall() argument 2031 if (RetVT != MVT::isVoid) { in FinishCall() 2034 CCInfo.AnalyzeCallResult(RetVT, CCAssignFnForCall(CC, true, isVarArg)); in FinishCall() 2037 if (RVLocs.size() == 2 && RetVT == MVT::f64) { in FinishCall() 2058 if (RetVT == MVT::i1 || RetVT == MVT::i8 || RetVT == MVT::i16) in FinishCall() 2207 MVT RetVT; in ARMEmitLibcall() local 2209 RetVT = MVT::isVoid; in ARMEmitLibcall() 2210 else if (!isTypeLegal(RetTy, RetVT)) in ARMEmitLibcall() 2214 if (RetVT != MVT::isVoid && RetVT != MVT::i32) { in ARMEmitLibcall() [all …]
|
| H A D | ARMISelLowering.cpp | 3237 auto RetVT = Outs[realRVLocIdx].ArgVT; in LowerReturn() local 3238 if (AFI->isCmseNSEntryFunction() && (RetVT == MVT::f16)) { in LowerReturn() 3243 auto MaskValue = APInt::getLowBitsSet(LocBits, RetVT.getSizeInBits()); in LowerReturn()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/X86/ |
| H A D | X86FastISel.cpp | 110 bool X86FastEmitCMoveSelect(MVT RetVT, const Instruction *I); 112 bool X86FastEmitSSESelect(MVT RetVT, const Instruction *I); 114 bool X86FastEmitPseudoSelect(MVT RetVT, const Instruction *I); 235 MVT RetVT; in foldX86XALUIntrinsic() local 239 if (!isTypeLegal(RetTy, RetVT)) in foldX86XALUIntrinsic() 242 if (RetVT != MVT::i32 && RetVT != MVT::i64) in foldX86XALUIntrinsic() 2026 bool X86FastISel::X86FastEmitCMoveSelect(MVT RetVT, const Instruction *I) { in X86FastEmitCMoveSelect() argument 2032 if (RetVT < MVT::i16 || RetVT > MVT::i64) in X86FastEmitCMoveSelect() 2036 const TargetRegisterClass *RC = TLI.getRegClassFor(RetVT); in X86FastEmitCMoveSelect() 2151 bool X86FastISel::X86FastEmitSSESelect(MVT RetVT, const Instruction *I) { in X86FastEmitSSESelect() argument [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/Mips/ |
| H A D | MipsFastISel.cpp | 197 unsigned emitLogicalOp(unsigned ISDOpc, MVT RetVT, const Value *LHS, 242 bool finishCall(CallLoweringInfo &CLI, MVT RetVT, unsigned NumBytes); 291 unsigned MipsFastISel::emitLogicalOp(unsigned ISDOpc, MVT RetVT, in emitLogicalOp() argument 1270 bool MipsFastISel::finishCall(CallLoweringInfo &CLI, MVT RetVT, in finishCall() argument 1274 if (RetVT != MVT::isVoid) { in finishCall() 1288 if (RetVT == MVT::i1 || RetVT == MVT::i8 || RetVT == MVT::i16) in finishCall() 1506 MVT RetVT; in fastLowerCall() local 1508 RetVT = MVT::isVoid; in fastLowerCall() 1509 else if (!isTypeSupported(CLI.RetTy, RetVT)) in fastLowerCall() 1577 return finishCall(CLI, RetVT, NumBytes); in fastLowerCall() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | LegalizeFloatTypes.cpp | 948 static RTLIB::Libcall findFPToIntLibcall(EVT SrcVT, EVT RetVT, EVT &Promoted, in findFPToIntLibcall() argument 956 if (Promoted.bitsGE(RetVT)) in findFPToIntLibcall() 2019 EVT RetVT = N->getOperand(0).getValueType(); in ExpandFloatOp_LROUND() local 2021 return TLI.makeLibCall(DAG, GetFPLibCall(RetVT, in ExpandFloatOp_LROUND() 2032 EVT RetVT = N->getOperand(0).getValueType(); in ExpandFloatOp_LLROUND() local 2034 return TLI.makeLibCall(DAG, GetFPLibCall(RetVT, in ExpandFloatOp_LLROUND() 2045 EVT RetVT = N->getOperand(0).getValueType(); in ExpandFloatOp_LRINT() local 2047 return TLI.makeLibCall(DAG, GetFPLibCall(RetVT, in ExpandFloatOp_LRINT() 2058 EVT RetVT = N->getOperand(0).getValueType(); in ExpandFloatOp_LLRINT() local 2060 return TLI.makeLibCall(DAG, GetFPLibCall(RetVT, in ExpandFloatOp_LLRINT() [all …]
|
| H A D | LegalizeDAG.cpp | 2038 EVT RetVT = Node->getValueType(0); in ExpandLibCall() local 2039 Type *RetTy = RetVT.getTypeForEVT(*DAG.getContext()); in ExpandLibCall() 2058 bool signExtend = TLI.shouldSignExtendTypeInLibCall(RetVT, isSigned); in ExpandLibCall() 2087 EVT RetVT = Node->getValueType(0); in ExpandFPLibCall() local 2091 std::pair<SDValue, SDValue> Tmp = TLI.makeLibCall(DAG, LC, RetVT, in ExpandFPLibCall() 2173 EVT RetVT = Node->getValueType(0); in ExpandDivRemLibCall() local 2174 Type *RetTy = RetVT.getTypeForEVT(*DAG.getContext()); in ExpandDivRemLibCall() 2189 SDValue FIPtr = DAG.CreateStackTemporary(RetVT); in ExpandDivRemLibCall() 2212 DAG.getLoad(RetVT, dl, CallInfo.second, FIPtr, MachinePointerInfo()); in ExpandDivRemLibCall() 2266 EVT RetVT = Node->getValueType(0); in ExpandSinCosLibCall() local [all …]
|
| H A D | TargetLowering.cpp | 144 TargetLowering::makeLibCall(SelectionDAG &DAG, RTLIB::Libcall LC, EVT RetVT, in makeLibCall() argument 176 Type *RetTy = RetVT.getTypeForEVT(*DAG.getContext()); in makeLibCall() 178 bool signExtend = shouldSignExtendTypeInLibCall(RetVT, CallOptions.IsSExt); in makeLibCall() 402 EVT RetVT = getCmpLibcallReturnType(); in softenSetCCOperands() local 407 CallOptions.setTypeListBeforeSoften(OpsVT, RetVT, true); in softenSetCCOperands() 408 auto Call = makeLibCall(DAG, LC1, RetVT, Ops, CallOptions, dl, Chain); in softenSetCCOperands() 410 NewRHS = DAG.getConstant(0, dl, RetVT); in softenSetCCOperands() 414 assert(RetVT.isInteger()); in softenSetCCOperands() 415 CCCode = getSetCCInverse(CCCode, RetVT); in softenSetCCOperands() 423 getSetCCResultType(DAG.getDataLayout(), *DAG.getContext(), RetVT); in softenSetCCOperands() [all …]
|
| H A D | FastISel.cpp | 2110 Register FastISel::fastEmitInst_extractsubreg(MVT RetVT, unsigned Op0, in fastEmitInst_extractsubreg() argument 2112 Register ResultReg = createResultReg(TLI.getRegClassFor(RetVT)); in fastEmitInst_extractsubreg()
|
| H A D | LegalizeVectorTypes.cpp | 6629 EVT RetVT = WidenEltVT; in findMemType() local 6631 return RetVT; in findMemType() 6650 RetVT = MemVT; in findMemType() 6671 if (RetVT.getFixedSizeInBits() < MemVTWidth || MemVT == WidenVT) in findMemType() 6681 return RetVT; in findMemType()
|
| H A D | LegalizeIntegerTypes.cpp | 2588 EVT RetVT = Node->getValueType(0); in ExpandAtomic() local 2600 return TLI.makeLibCall(DAG, LC, RetVT, Ops, CallOptions, SDLoc(Node), in ExpandAtomic() 3560 EVT RetVT = N->getValueType(0); in ExpandIntRes_XROUND_XRINT() local 3564 std::pair<SDValue, SDValue> Tmp = TLI.makeLibCall(DAG, LC, RetVT, in ExpandIntRes_XROUND_XRINT()
|
| H A D | SelectionDAGBuilder.cpp | 6381 EVT RetVT = TLI.getValueType(DAG.getDataLayout(), I.getType()); in visitIntrinsicCall() local 6382 setValue(&I, DAG.getNode(Opcode, sdl, RetVT, in visitIntrinsicCall() 9893 EVT RetVT = OldRetTys[i]; in LowerCallTo() local 9895 MVT RegisterVT = getRegisterType(CLI.RetTy->getContext(), RetVT); in LowerCallTo() 9896 unsigned NumRegs = getNumRegisters(CLI.RetTy->getContext(), RetVT); in LowerCallTo()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyFastISel.cpp | 1157 EVT RetVT = TLI.getValueType(DL, I->getType()); in selectBitCast() local 1158 if (!VT.isSimple() || !RetVT.isSimple()) in selectBitCast() 1165 if (VT == RetVT) { in selectBitCast() 1171 Register Reg = fastEmit_ISD_BITCAST_r(VT.getSimpleVT(), RetVT.getSimpleVT(), in selectBitCast()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/LoongArch/ |
| H A D | LoongArchISelLowering.cpp | 377 EVT RetVT = Op.getValueType(); in lowerUINT_TO_FP() local 378 RTLIB::Libcall LC = RTLIB::getUINTTOFP(OpVT, RetVT); in lowerUINT_TO_FP() 380 CallOptions.setTypeListBeforeSoften(OpVT, RetVT, true); in lowerUINT_TO_FP() 402 EVT RetVT = Op.getValueType(); in lowerSINT_TO_FP() local 403 RTLIB::Libcall LC = RTLIB::getSINTTOFP(OpVT, RetVT); in lowerSINT_TO_FP() 405 CallOptions.setTypeListBeforeSoften(OpVT, RetVT, true); in lowerSINT_TO_FP()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/SystemZ/ |
| H A D | SystemZISelLowering.h | 575 EVT RetVT, ArrayRef<SDValue> Ops, CallingConv::ID CallConv,
|
| H A D | SystemZISelLowering.cpp | 1889 SDValue Chain, SelectionDAG &DAG, const char *CalleeName, EVT RetVT, in makeExternalCall() argument 1907 Type *RetTy = RetVT.getTypeForEVT(*DAG.getContext()); in makeExternalCall() 1909 bool SignExtend = shouldSignExtendTypeInLibCall(RetVT, IsSigned); in makeExternalCall()
|