| /llvm-project-15.0.7/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/ |
| H A D | move.pass.cpp | 42 return std::unique_ptr<VT>(newValue<VT>(1)); in source1() 46 std::unique_ptr<VT, Deleter<VT> > source2() { in source2() 47 return std::unique_ptr<VT, Deleter<VT> >(newValue<VT>(1), Deleter<VT>(5)); in source2() 51 std::unique_ptr<VT, NCDeleter<VT>&> source3() { in source3() 53 return std::unique_ptr<VT, NCDeleter<VT>&>(newValue<VT>(1), d); in source3() 62 void sink2(std::unique_ptr<VT, Deleter<VT> > p) { in sink2() argument 68 void sink3(std::unique_ptr<VT, NCDeleter<VT>&> p) { in sink3() argument 130 sink1<VT>(source1<VT>()); in test_basic() 132 sink2<VT>(source2<VT>()); in test_basic() 134 sink3<VT>(source3<VT>()); in test_basic() [all …]
|
| H A D | move_convert.pass.cpp | 153 typedef std::unique_ptr<VT> BPtr; in test_noexcept() 157 typedef std::unique_ptr<const VT, CDeleter<const VT> > APtr; in test_noexcept() 158 typedef std::unique_ptr<VT, CDeleter<VT> > BPtr; in test_noexcept() 162 typedef std::unique_ptr<const VT, NCDeleter<const VT>&> APtr; in test_noexcept() 163 typedef std::unique_ptr<VT, NCDeleter<const VT>&> BPtr; in test_noexcept() 167 typedef std::unique_ptr<const VT, const NCConstDeleter<const VT>&> APtr; in test_noexcept() 168 typedef std::unique_ptr<VT, const NCConstDeleter<const VT>&> BPtr; in test_noexcept() 183 using U1 = std::unique_ptr<VT, TD1 >; in test_deleter_value_category() 184 using U2 = std::unique_ptr<VT, TD2 >; in test_deleter_value_category() 191 using U1 = std::unique_ptr<VT, TD1 >; in test_deleter_value_category() [all …]
|
| H A D | null.pass.cpp | 25 template <class VT> 28 std::unique_ptr<VT> p(0); in test_pointer_ctor() 32 std::unique_ptr<VT, Deleter<VT> > p(0); in test_pointer_ctor() 38 template <class VT> 41 std::default_delete<VT> d; in test_pointer_deleter_ctor() 42 std::unique_ptr<VT> p(0, d); in test_pointer_deleter_ctor() 46 std::unique_ptr<VT, Deleter<VT> > p(0, Deleter<VT>(5)); in test_pointer_deleter_ctor() 51 NCDeleter<VT> d(5); in test_pointer_deleter_ctor() 52 std::unique_ptr<VT, NCDeleter<VT>&> p(0, d); in test_pointer_deleter_ctor() 57 NCConstDeleter<VT> d(5); in test_pointer_deleter_ctor() [all …]
|
| H A D | nullptr.pass.cpp | 32 template <class VT> 36 using U1 = std::unique_ptr<VT>; in test_basic() 37 using U2 = std::unique_ptr<VT, Deleter<VT> >; in test_basic() 45 std::unique_ptr<VT> p(nullptr); in test_basic() 49 std::unique_ptr<VT, NCDeleter<VT> > p(nullptr); in test_basic() 54 std::unique_ptr<VT, DefaultCtorDeleter<VT> > p(nullptr); in test_basic() 60 template <class VT> 65 using U = std::unique_ptr<VT, void (*)(void*)>; in test_sfinae() 70 using Del = CDeleter<VT>; in test_sfinae() 72 using U2 = std::unique_ptr<VT, Del&>; in test_sfinae() [all …]
|
| H A D | pointer_deleter.pass.cpp | 213 std::unique_ptr<VT, Deleter<VT> > s(p, Deleter<VT>(5)); in test_basic() 221 CopyDeleter<VT> d(5); in test_basic() 222 std::unique_ptr<VT, CopyDeleter<VT> > s(p, d); in test_basic() 232 NCDeleter<VT> d(5); in test_basic() 233 std::unique_ptr<VT, NCDeleter<VT>&> s(p, d); in test_basic() 245 std::unique_ptr<VT, NCConstDeleter<VT> const&> s(p, d); in test_basic() 296 std::unique_ptr<VT, Deleter<VT> > u(nullptr, Deleter<VT>{}); in test_nullptr() 300 NCDeleter<VT> d; in test_nullptr() 301 std::unique_ptr<VT, NCDeleter<VT>& > u(nullptr, d); in test_nullptr() 305 NCConstDeleter<VT> d; in test_nullptr() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/ |
| H A D | AArch64ISelDAGToDAG.cpp | 2568 if (VT != MVT::i32 && VT != MVT::i64) in tryBitfieldInsertOpFromOrAndImm() 2657 if (VT != MVT::i32 && VT != MVT::i64) in tryBitfieldInsertOpFromOr() 2847 if (VT != MVT::i32 && VT != MVT::i64) in tryBitfieldInsertInZeroOp() 4725 } else if (VT == MVT::v8i16 || VT == MVT::v4i16 || VT == MVT::v4f16 || in Select() 4729 } else if (VT == MVT::v4i32 || VT == MVT::v2i32 || VT == MVT::v4f32 || in Select() 4733 } else if (VT == MVT::v2i64 || VT == MVT::v1i64 || VT == MVT::v2f64 || in Select() 4744 } else if (VT == MVT::v8i16 || VT == MVT::v4i16 || VT == MVT::v4f16 || in Select() 4748 } else if (VT == MVT::v4i32 || VT == MVT::v2i32 || VT == MVT::v4f32 || in Select() 4752 } else if (VT == MVT::v2i64 || VT == MVT::v1i64 || VT == MVT::v2f64 || in Select() 4763 } else if (VT == MVT::v8i16 || VT == MVT::v4i16 || VT == MVT::v4f16 || in Select() [all …]
|
| H A D | AArch64ISelLowering.cpp | 1081 if (VT == MVT::v16i8 || VT == MVT::v8i16 || VT == MVT::v4i32) { in AArch64TargetLowering() 1463 if (VT == MVT::v2f32 || VT == MVT::v4f32 || VT == MVT::v2f64) { in addTypeForNEON() 1475 if (VT == MVT::v2f32 || VT == MVT::v4f32 || VT == MVT::v2f64 || in addTypeForNEON() 1516 if (!VT.isFloatingPoint() && VT != MVT::v2i64 && VT != MVT::v1i64) in addTypeForNEON() 8635 if (VT.isFloatingPoint() && !VT.isVector() && VT != MVT::f64) { in LowerVAARG() 8831 (VT == MVT::f64 || VT == MVT::v1f64 || VT == MVT::v2f64 || in getEstimate() 8832 VT == MVT::f32 || VT == MVT::v1f32 || VT == MVT::v2f32 || in getEstimate() 11544 if (VT != MVT::v8i8 && VT != MVT::v4i16 && VT != MVT::v2i32 && in LowerINSERT_VECTOR_ELT() 11594 if (VT != MVT::v8i8 && VT != MVT::v4i16 && VT != MVT::v2i32 && in LowerEXTRACT_VECTOR_ELT() 13604 VT = VT.getScalarType(); in isFMAFasterThanFMulAndFAdd() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | VersionTupleTest.cpp | 23 VersionTuple VT; in TEST() local 25 EXPECT_FALSE(VT.tryParse("1")); in TEST() 26 EXPECT_EQ("1", VT.getAsString()); in TEST() 28 EXPECT_FALSE(VT.tryParse("1.2")); in TEST() 37 EXPECT_TRUE(VT.tryParse("")); in TEST() 38 EXPECT_TRUE(VT.tryParse("1.")); in TEST() 43 EXPECT_TRUE(VT.tryParse("1-2")); in TEST() 45 EXPECT_TRUE(VT.tryParse(".1")); in TEST() 46 EXPECT_TRUE(VT.tryParse(" 1")); in TEST() 47 EXPECT_TRUE(VT.tryParse("1 ")); in TEST() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.asgn/ |
| H A D | move_convert.pass.cpp | 262 doDeleterTest<VT, AD, Del>(); in test_sfinae() 263 doDeleterTest<VT, AD&, Del>(); in test_sfinae() 270 doDeleterTest<VT, AD, Del&>(); in test_sfinae() 271 doDeleterTest<VT, AD&, Del&>(); in test_sfinae() 290 typedef std::unique_ptr<VT> BPtr; in test_noexcept() 294 typedef std::unique_ptr<const VT, CDeleter<const VT> > APtr; in test_noexcept() 295 typedef std::unique_ptr<VT, CDeleter<VT> > BPtr; in test_noexcept() 299 typedef std::unique_ptr<const VT, NCDeleter<const VT>&> APtr; in test_noexcept() 300 typedef std::unique_ptr<VT, NCDeleter<const VT>&> BPtr; in test_noexcept() 304 typedef std::unique_ptr<const VT, const NCConstDeleter<const VT>&> APtr; in test_noexcept() [all …]
|
| H A D | move.pass.cpp | 40 std::unique_ptr<VT> s1(newValue<VT>(expect_alive)); in test_basic() 42 std::unique_ptr<VT> s2(newValue<VT>(expect_alive)); in test_basic() 51 std::unique_ptr<VT, Deleter<VT> > s1(newValue<VT>(expect_alive), in test_basic() 54 std::unique_ptr<VT, Deleter<VT> > s2(newValue<VT>(expect_alive)); in test_basic() 65 CDeleter<VT> d1(5); in test_basic() 66 std::unique_ptr<VT, CDeleter<VT>&> s1(newValue<VT>(expect_alive), d1); in test_basic() 68 CDeleter<VT> d2(6); in test_basic() 69 std::unique_ptr<VT, CDeleter<VT>&> s2(newValue<VT>(expect_alive), d2); in test_basic() 79 std::unique_ptr<VT> s(newValue<VT>(expect_alive)); in test_basic() 106 typedef std::unique_ptr<VT, NCDeleter<VT>&> U; in test_sfinae() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | ValueTypes.h | 44 bool operator==(EVT VT) const { 45 return !(*this != VT); 228 bool bitsEq(EVT VT) const { in bitsEq() 256 bool bitsGT(EVT VT) const { in bitsGT() 260 return knownBitsGT(VT); in bitsGT() 264 bool bitsGE(EVT VT) const { in bitsGE() 268 return knownBitsGE(VT); in bitsGE() 272 bool bitsLT(EVT VT) const { in bitsLT() 276 return knownBitsLT(VT); in bitsLT() 280 bool bitsLE(EVT VT) const { in bitsLE() [all …]
|
| H A D | TargetLowering.h | 696 return isTypeLegal(VT) ? VT : MVT::INVALID_SIMPLE_VALUE_TYPE; in hasFastEqualityCompare() 997 return VT; in getTypeToExpandTo() 999 VT = getTypeToTransformTo(Context, VT); in getTypeToExpandTo() 1166 return (VT == MVT::Other || isTypeLegal(VT)) && 1180 return (VT == MVT::Other || isTypeLegal(VT)) && 1194 return (VT == MVT::Other || isTypeLegal(VT)) && 1265 return (!isTypeLegal(VT) || getOperationAction(Op, VT) == Expand); in isOperationExpand() 1270 return (VT == MVT::Other || isTypeLegal(VT)) && in isOperationLegal() 1440 assert((VT.isInteger() || VT.isFloatingPoint()) && in getTypeToPromoteTo() 1443 MVT NVT = VT; in getTypeToPromoteTo() [all …]
|
| H A D | SelectionDAG.h | 108 FastID(ID), VTs(VT), NumVTs(Num) { 617 SDVTList getVTList(EVT VT); 639 return getConstant(APInt::getAllOnes(VT.getScalarSizeInBits()), DL, VT, 704 return getFrameIndex(FI, VT, true); 826 (VT.isInteger() && 842 (VT.isInteger() && 971 SDValue getUNDEF(EVT VT) { 979 return getNode(ISD::VSCALE, DL, VT, 980 getConstant(MulImm.sextOrTrunc(VT.getSizeInBits()), DL, VT)); 1112 assert(LHS.getValueType() == VT && RHS.getValueType() == VT && [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVISelLowering.cpp | 21 LLVMContext &Context, CallingConv::ID CC, EVT VT) const { in getNumRegistersForCallingConv() 25 if (VT.isVector() && VT.getVectorNumElements() == 3 && in getNumRegistersForCallingConv() 26 (VT.getVectorElementType() == MVT::i1 || in getNumRegistersForCallingConv() 27 VT.getVectorElementType() == MVT::i8)) in getNumRegistersForCallingConv() 29 return getNumRegisters(Context, VT); in getNumRegistersForCallingConv() 34 EVT VT) const { in getRegisterTypeForCallingConv() 38 if (VT.isVector() && VT.getVectorNumElements() == 3) { in getRegisterTypeForCallingConv() 39 if (VT.getVectorElementType() == MVT::i1) in getRegisterTypeForCallingConv() 41 else if (VT.getVectorElementType() == MVT::i8) in getRegisterTypeForCallingConv() 44 return getRegisterType(Context, VT); in getRegisterTypeForCallingConv()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | TargetLowering.cpp | 225 VT = LVT; in findOptimalMemOpLowering() 238 if (VT.isVector() || VT.isFloatingPoint()) { in findOptimalMemOpLowering() 309 assert((VT == MVT::f32 || VT == MVT::f64 || VT == MVT::f128 || VT == MVT::ppcf128) in softenSetCCOperands() 4752 (VT == ShValTy || (isTypeLegal(VT) && VT.bitsLE(ShValTy))) && in SimplifySetCC() 5785 if (VT.isVector() || !VT.isSimple()) in BuildSDIV() 5933 if (VT.isVector() || !VT.isSimple()) in BuildUDIV() 7868 if (VT.isVector() && !canExpandVectorCTPOP(*this, VT)) in expandCTPOP() 8010 ISD::AND, dl, VT, DAG.getNOT(dl, Op, VT), in expandCTTZ() 8376 if (VT.isFloatingPoint() || VT.isVector()) { in expandUnalignedLoad() 9184 DAG.getVTList(VT, VT), in expandFixedPointDiv() [all …]
|
| H A D | DAGCombiner.cpp | 1349 if (VT.isVector() || !VT.isInteger()) in PromoteIntBinOp() 1417 if (VT.isVector() || !VT.isInteger()) in PromoteIntShiftOp() 1466 if (VT.isVector() || !VT.isInteger()) in PromoteExtend() 1497 if (VT.isVector() || !VT.isInteger()) in PromoteLoad() 4198 if (VT.isVector() || !VT.isInteger()) in useDivRem() 4892 if (VT.isSimple() && !VT.isVector()) { in visitSMUL_LOHI() 4942 if (VT.isSimple() && !VT.isVector()) { in visitUMUL_LOHI() 6525 if (VT != MVT::i64 && VT != MVT::i32 && VT != MVT::i16) in MatchBSwapHWordLow() 8142 if (VT != MVT::i16 && VT != MVT::i32 && VT != MVT::i64) in MatchLoadCombine() 20291 if (InVT1 != VT || InVT2 != VT) { in createBuildVecShuffle() [all …]
|
| H A D | SelectionDAG.cpp | 1032 assert(!VT.isVector() && (VT.isInteger() || VT.isFloatingPoint()) && in VerifySDNode() 1424 SDValue TrueValue = getBoolConstant(true, DL, VT, VT); in getLogicalNOT() 1430 SDValue TrueValue = getBoolConstant(true, DL, VT, VT); in getVPLogicalNOT() 1799 if (VT.isSimple() && (unsigned)VT.getSimpleVT().SimpleTy >= in getValueType() 1882 assert(VT == N1.getValueType() && VT == N2.getValueType() && in getVectorShuffle() 2259 if (TLI->isTypeLegal(VT) || !VT.isVector()) in getReducedAlign() 6049 assert((!VT.isVector() || VT == N2.getValueType()) && in getNode() 6138 assert((!VT.isVector() || VT.getVectorElementCount() == in getNode() 6432 assert((!VT.isVector() || VT.getVectorElementCount() == in getNode() 6616 if (VT != Value.getValueType() && !VT.isInteger()) in getMemsetValue() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.modifiers/ |
| H A D | reset.pass.cpp | 23 typedef typename std::conditional<IsArray, A[], A>::type VT; in test_reset_pointer() typedef 27 using U = std::unique_ptr<VT>; in test_reset_pointer() 33 std::unique_ptr<VT> p(newValue<VT>(expect_alive)); in test_reset_pointer() 37 A* new_value = newValue<VT>(expect_alive); in test_reset_pointer() 45 std::unique_ptr<const VT> p(newValue<const VT>(expect_alive)); in test_reset_pointer() 49 A* new_value = newValue<VT>(expect_alive); in test_reset_pointer() 60 typedef typename std::conditional<IsArray, A[], A>::type VT; in test_reset_nullptr() typedef 64 using U = std::unique_ptr<VT>; in test_reset_nullptr() 70 std::unique_ptr<VT> p(newValue<VT>(expect_alive)); in test_reset_nullptr() 88 using U = std::unique_ptr<VT>; in test_reset_no_arg() [all …]
|
| H A D | swap.pass.cpp | 43 typedef typename std::remove_all_extents<T>::type VT; in newValueInit() typedef 44 VT* p = newValue<T>(size); in newValueInit() 52 typedef typename std::conditional<IsArray, TT[], TT>::type VT; in test_basic() typedef 56 using U = std::unique_ptr<VT, Deleter<VT> >; in test_basic() 62 TT* p1 = newValueInit<VT>(expect_alive, 1); in test_basic() 63 std::unique_ptr<VT, Deleter<VT> > s1(p1, Deleter<VT>(1)); in test_basic() 64 TT* p2 = newValueInit<VT>(expect_alive, 2); in test_basic() 65 std::unique_ptr<VT, Deleter<VT> > s2(p2, Deleter<VT>(2)); in test_basic()
|
| /llvm-project-15.0.7/llvm/lib/Target/RISCV/ |
| H A D | RISCVISelDAGToDAG.cpp | 64 Result = CurDAG->getNode(Opc, DL, VT, CurDAG->getUNDEF(VT), in PreprocessISelDAG() 78 assert(VT.getVectorElementType() == MVT::i64 && VT.isScalableVector() && in PreprocessISelDAG() 789 RISCV::SRLIW, DL, VT, X, CurDAG->getTargetConstant(C2, DL, VT)); in Select() 842 RISCV::SLLI_UW, DL, VT, X, CurDAG->getTargetConstant(C2, DL, VT)); in Select() 875 SrliOpc, DL, VT, X, in Select() 1587 if (VT.isFixedLengthVector()) in Select() 1588 VT = TLI.getContainerForFixedLengthVector(VT); in Select() 1636 MVT SubVecContainerVT = VT; in Select() 1841 if (!VT.isScalarInteger() && VT != MVT::f16 && VT != MVT::f32 && in isWorthFoldingAdd() 1842 VT != MVT::f64) in isWorthFoldingAdd() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.cpp | 5835 return VT == MVT::f32 || VT == MVT::f64 || VT.isVector(); in hasBitPreservingFPLogic() 10584 if (VT == MVT::v8f32 || VT == MVT::v4f64 || VT == MVT::v8i32 || in LowerToHorizontalOp() 10717 if (VT == MVT::v4i32 || VT == MVT::v8i32 || VT == MVT::v16i32) in materializeVectorConstant() 28946 if (VT == MVT::i16 || VT == MVT::i32 || VT == MVT::i64) { in LowerABS() 30513 (VT == MVT::i8 || VT == MVT::i16 || VT == MVT::i32 || VT == MVT::i64) && in LowerFunnelShift() 34110 VT = VT.getScalarType(); in isFMAFasterThanFMulAndFAdd() 39611 if (VT != MVT::v4f32 && VT != MVT::v8f32 && VT != MVT::v16f32) in combineCommutableSHUFP() 49383 if ((VT == MVT::v1i1 || VT == MVT::v2i1 || VT == MVT::v4i1) && VT == StVT && in combineStore() 49397 VT == MVT::v64i1) && VT == StVT && TLI.isTypeLegal(VT) && in combineStore() 56022 if (VT == MVT::f32 || VT == MVT::f64 || VT == MVT::f80) in getRegForInlineAsmConstraint() [all …]
|
| H A D | X86InterleavedAccess.cpp | 233 static MVT scaleVectorType(MVT VT) { in scaleVectorType() argument 264 assert(VT.getSizeInBits() >= 256 && in genShuffleBland() 331 MVT VT = MVT::v8i16; in interleave8bitStride4VF8() local 372 MVT HalfVT = scaleVectorType(VT); in interleave8bitStride4() 421 if (VT == MVT::v16i8) { in interleave8bitStride4() 442 int VectorSize = VT.getSizeInBits(); in createShuffleStride() 443 int VF = VT.getVectorNumElements(); in createShuffleStride() 564 createShuffleStride(VT, 3, VPShuf); in deinterleave8bitStride3() 565 setGroupSize(VT, GroupSize); in deinterleave8bitStride3() 615 int VF = VT.getVectorNumElements(); in group2Shuffle() [all …]
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | CallingConvLower.cpp | 87 MVT ArgVT = Ins[i].VT; in AnalyzeFormalArguments() 100 MVT VT = Outs[i].VT; in CheckReturn() local 102 if (Fn(i, VT, VT, CCValAssign::Full, ArgFlags, *this)) in CheckReturn() 114 MVT VT = Outs[i].VT; in AnalyzeReturn() local 116 if (Fn(i, VT, VT, CCValAssign::Full, ArgFlags, *this)) in AnalyzeReturn() 162 MVT VT = Ins[i].VT; in AnalyzeCallResult() local 164 if (Fn(i, VT, VT, CCValAssign::Full, Flags, *this)) { in AnalyzeCallResult() 176 if (Fn(0, VT, VT, CCValAssign::Full, ISD::ArgFlagsTy(), *this)) { in AnalyzeCallResult() 191 if (VT.isVector()) in isValueTypeInRegForCC() 193 if (!VT.isInteger()) in isValueTypeInRegForCC() [all …]
|
| H A D | TargetLoweringBase.cpp | 504 switch (VT.SimpleTy) { in getOUTLINE_ATOMIC() 845 if (VT.isVector()) in initActions() 867 VT, Expand); in initActions() 925 assert(isTypeLegal(VT)); in canOpTrap() 951 if (VT.isSimple()) { in getTypeConversion() 971 if (!VT.isVector()) { in getTypeConversion() 1395 if (isTypeLegal(VT)) in computeRegisterProperties() 1476 if (NVT == VT) { in computeRegisterProperties() 1564 EVT PartVT = VT; in getVectorTypeBreakdown() 1663 EVT VT = ValueVTs[j]; in GetReturnInfo() local [all …]
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | cxx11-call-to-deleted-constructor.cpp | 10 template <class VT, unsigned int ROWS = 0, unsigned int COLS = 0> 14 typedef VT value_type; 18 template <class VT, unsigned int SIZE> using Vector = Matrix<VT, SIZE, 1>; 20 template <class VT> 21 using RGBValue = Vector<VT, 3>; 24 template <class VT> class Matrix<VT, 0, 0> { // expected-note {{passing argument to parameter here}} 26 typedef VT value_type;
|