Home
last modified time | relevance | path

Searched refs:PtrType (Results 1 – 25 of 29) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DSmallPtrSet.h368 template <typename PtrType>
370 using ConstPtrType = typename add_const_past_pointer<PtrType>::type;
371 using PtrTraits = PointerLikeTypeTraits<PtrType>;
379 using iterator = SmallPtrSetIterator<PtrType>;
380 using const_iterator = SmallPtrSetIterator<PtrType>;
382 using value_type = PtrType;
390 std::pair<iterator, bool> insert(PtrType Ptr) { in insert()
398 iterator insert(iterator, PtrType Ptr) { in insert()
407 bool erase(PtrType Ptr) { in erase()
429 PtrType Ptr = PtrTraits::getFromVoidPointer(const_cast<void *>(*APtr)); in remove_if()
[all …]
/freebsd/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_wait_release.h140 template <typename PtrType, flag_type FlagType, bool Sleepable>
143 volatile PtrType *loc;
144 PtrType checker = (PtrType)0; /**< When flag==checker, it has been released */
148 typedef PtrType flag_t;
149 kmp_flag_native(volatile PtrType *p) : kmp_flag<FlagType>(), loc(p) {}
150 kmp_flag_native(volatile PtrType *p, kmp_info_t *thr)
154 kmp_flag_native(volatile PtrType *p, PtrType c)
156 kmp_flag_native(volatile PtrType *p, PtrType c, std::atomic<bool> *sloc)
161 volatile PtrType *get() { return loc; }
162 void *get_void_p() { return RCAST(void *, CCAST(PtrType *, loc)); }
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DInterpBuiltinBitCast.cpp394 QualType PtrType = P.getType(); in DoBitCastPtr() local
396 const auto &Semantics = ASTCtx.getFloatTypeSemantics(PtrType); in DoBitCastPtr()
426 if (!PtrType->isStdByteType() && in DoBitCastPtr()
427 !PtrType->isSpecificBuiltinType(BuiltinType::UChar) && in DoBitCastPtr()
428 !PtrType->isSpecificBuiltinType(BuiltinType::Char_U)) { in DoBitCastPtr()
431 << PtrType << S.getLangOpts().CharIsSigned in DoBitCastPtr()
H A DCompiler.cpp409 QualType PtrType = CE->getType(); in VisitCastExpr() local
411 if (std::optional<PrimType> T = classify(PtrType->getPointeeType())) in VisitCastExpr()
413 else if (PtrType->getPointeeType()->isVoidType()) in VisitCastExpr()
416 Desc = P.createDescriptor(CE, PtrType->getPointeeType().getTypePtr(), in VisitCastExpr()
422 PrimType DestPtrT = classifyPrim(PtrType); in VisitCastExpr()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVISelLowering.cpp240 SPIRVType *PtrType = GR.getSPIRVTypeForVReg(PtrTypeReg, MF); in validateLifetimeStart() local
241 SPIRVType *PonteeElemType = PtrType ? GR.getPointeeType(PtrType) : nullptr; in validateLifetimeStart()
249 PtrType->getOperand(1).getImm()); in validateLifetimeStart()
579 SPIRVType *PtrType = GR.getResultType(I.getOperand(PtrOpIdx).getReg()); in enforcePtrTypeCompatibility() local
580 SPIRVType *PointeeType = GR.getPointeeType(PtrType); in enforcePtrTypeCompatibility()
H A DSPIRVGlobalRegistry.cpp1311 SPIRVType *SPIRVGlobalRegistry::getPointeeType(SPIRVType *PtrType) { in getPointeeType() argument
1312 return PtrType && PtrType->getOpcode() == SPIRV::OpTypePointer in getPointeeType()
1313 ? getSPIRVTypeForVReg(PtrType->getOperand(2).getReg()) in getPointeeType()
1791 SPIRVType *PtrType, SPIRV::StorageClass::StorageClass SC, MachineInstr &I) { in changePointerStorageClass() argument
1793 getPointerStorageClass(PtrType); in changePointerStorageClass()
1797 SPIRVType *PointeeType = getPointeeType(PtrType); in changePointerStorageClass()
H A DSPIRVGlobalRegistry.h323 SPIRVType *getPointeeType(SPIRVType *PtrType);
604 SPIRVType *changePointerStorageClass(SPIRVType *PtrType,
H A DSPIRVBuiltins.cpp515 SPIRVType *PtrType = GR->getOrCreateSPIRVPointerType( in buildBuiltinVariableLoad() local
517 GR->assignSPIRVTypeToVReg(PtrType, NewRegister, MIRBuilder.getMF()); in buildBuiltinVariableLoad()
521 NewRegister, PtrType, getLinkStringForBuiltIn(BuiltinValue), nullptr, in buildBuiltinVariableLoad()
2355 SPIRVType *PtrType = GR->getSPIRVTypeForVReg(Call->Arguments[0]); in buildNDRange() local
2356 assert(PtrType->getOpcode() == SPIRV::OpTypePointer && in buildNDRange()
2357 PtrType->getOperand(2).isReg()); in buildNDRange()
2358 Register TypeReg = PtrType->getOperand(2).getReg(); in buildNDRange()
2422 Type *PtrType = PointerType::get(Context, SC1); in getOrCreateSPIRVDeviceEventPointer() local
2423 return GR->getOrCreateSPIRVType(PtrType, MIRBuilder, in getOrCreateSPIRVDeviceEventPointer()
H A DSPIRVInstructionSelector.cpp3434 SPIRVType *PtrType = in buildPointerToResource() local
3436 assert(GR.getPointeeType(PtrType) == SpirvResType && in buildPointerToResource()
3438 return GR.getOrCreateGlobalVariableWithBinding(PtrType, Set, Binding, Name, in buildPointerToResource()
4029 const SPIRVType *PtrType = GR.getOrCreateSPIRVPointerType( in loadVec3BuiltinInputID() local
4036 GR.assignSPIRVTypeToVReg(PtrType, NewRegister, MIRBuilder.getMF()); in loadVec3BuiltinInputID()
4041 NewRegister, PtrType, getLinkStringForBuiltIn(BuiltInValue), nullptr, in loadVec3BuiltinInputID()
4079 const SPIRVType *PtrType = GR.getOrCreateSPIRVPointerType( in loadBuiltinInputID() local
4084 MIRBuilder.getMRI()->createVirtualRegister(GR.getRegClass(PtrType)); in loadBuiltinInputID()
4089 GR.assignSPIRVTypeToVReg(PtrType, NewRegister, MIRBuilder.getMF()); in loadBuiltinInputID()
4094 NewRegister, PtrType, getLinkStringForBuiltIn(BuiltInValue), nullptr, in loadBuiltinInputID()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaSwift.cpp51 if (const auto *PtrType = Ty->getAs<PointerType>()) { in isValidSwiftIndirectResultType() local
52 Ty = PtrType->getPointeeType(); in isValidSwiftIndirectResultType()
63 if (const auto *PtrType = Ty->getAs<PointerType>()) { in isValidSwiftErrorResultType() local
64 Ty = PtrType->getPointeeType(); in isValidSwiftErrorResultType()
H A DSemaRISCV.cpp1382 const PointerType *PtrType = PointerArg->getType()->getAs<PointerType>(); in CheckBuiltinFunctionCall() local
1383 if (!PtrType) { in CheckBuiltinFunctionCall()
1389 QualType ValType = PtrType->getPointeeType(); in CheckBuiltinFunctionCall()
H A DSemaCast.cpp227 if (const auto *PtrType = dyn_cast<PointerType>(FromType)) { in CheckNoDeref() local
228 if (PtrType->getPointeeType()->hasAttr(attr::NoDeref)) { in CheckNoDeref()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DRefCntblBaseVirtualDtorChecker.cpp114 if (auto *PtrType = dyn_cast<PointerType>(CastType)) { in VisitCXXDeleteExpr() local
115 auto PointeeType = PtrType->getPointeeType(); in VisitCXXDeleteExpr()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DIRBuilder.cpp1053 auto *PtrType = Ptr->getType(); in CreateLaunderInvariantGroup() local
1056 M, Intrinsic::launder_invariant_group, {PtrType}); in CreateLaunderInvariantGroup()
1058 assert(FnLaunderInvariantGroup->getReturnType() == PtrType && in CreateLaunderInvariantGroup()
1060 PtrType && in CreateLaunderInvariantGroup()
1070 auto *PtrType = Ptr->getType(); in CreateStripInvariantGroup() local
1073 M, Intrinsic::strip_invariant_group, {PtrType}); in CreateStripInvariantGroup()
1075 assert(FnStripInvariantGroup->getReturnType() == PtrType && in CreateStripInvariantGroup()
1077 PtrType && in CreateStripInvariantGroup()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DCodeExtractor.h25 template <typename PtrType> class SmallPtrSetImpl;
H A DBasicBlockUtils.h31 template <typename PtrType> class SmallPtrSetImpl;
/freebsd/contrib/llvm-project/lldb/source/Plugins/Language/ObjC/
H A DNSArray.cpp145 template <typename PtrType>
147 PtrType _cow;
149 PtrType _data;
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DIteratorModeling.cpp637 QualType PtrType = Iterator->getType(); in handlePtrIncrOrDecr() local
638 if (!PtrType->isPointerType()) in handlePtrIncrOrDecr()
640 QualType ElementType = PtrType->getPointeeType(); in handlePtrIncrOrDecr()
/freebsd/contrib/llvm-project/clang/utils/TableGen/
H A DMveEmitter.cpp635 const PointerType *PtrType; member in __anon819a2c470111::PointerCastResult
637 PointerCastResult(const PointerType *PtrType, Ptr V) in PointerCastResult() argument
638 : PtrType(PtrType), V(V) {} in PointerCastResult()
642 << ParamAlloc.allocParam("llvm::Type *", PtrType->llvmName()) << ")"; in genCode()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DType.h35 template <typename PtrType> class SmallPtrSetImpl;
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DMergeFunctions.cpp828 PointerType *PtrType = G->getType(); in writeAlias() local
829 auto *GA = GlobalAlias::create(G->getValueType(), PtrType->getAddressSpace(), in writeAlias()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/
H A DTypeRecordMapping.cpp385 std::string PtrType = std::string(getEnumName( in visitKnownRecord() local
387 Attr += "[ Type: " + PtrType; in visitKnownRecord()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/TargetBuiltins/
H A DPPC.cpp62 llvm::Type *PtrType = CGF.UnqualPtrTy; in emitPPCLoadReserveIntrinsic() local
63 llvm::FunctionType *FTy = llvm::FunctionType::get(RetType, {PtrType}, false); in emitPPCLoadReserveIntrinsic()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DMicrosoftCXXABI.cpp507 llvm::Type *getImageRelativeType(llvm::Type *PtrType) { in getImageRelativeType() argument
509 return PtrType; in getImageRelativeType()
3807 llvm::Type *PtrType = ABI.getImageRelativeType(CGM.UnqualPtrTy); in getBaseClassArray() local
3808 auto *ArrType = llvm::ArrayType::get(PtrType, Classes.size() + 1); in getBaseClassArray()
3821 BaseClassArrayData.push_back(llvm::Constant::getNullValue(PtrType)); in getBaseClassArray()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DR600ISelLowering.cpp770 PointerType *PtrType = in LowerImplicitParameter() local
778 MachinePointerInfo(ConstantPointerNull::get(PtrType))); in LowerImplicitParameter()

12