/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | Pointer.h | 28 class Pointer; variable 33 class Pointer; variable 34 inline llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const Pointer &P); 79 class Pointer { 85 Pointer() { in Pointer() function 90 Pointer(Block *B); 91 Pointer(Block *B, uint64_t BaseAndOffset); 92 Pointer(const Pointer &P); 93 Pointer(Pointer &&P); 94 Pointer(uint64_t Address, const Descriptor *Desc, uint64_t Offset = 0) [all …]
|
H A D | Opcodes.td | 273 // [] -> [Pointer] 281 // Pointer generation 287 // [] -> [Pointer] 291 // [] -> [Pointer] 293 // [] -> [Pointer] 295 // [Pointer] -> [Pointer] 298 // [Pointer] -> [Pointer] 300 // [] -> [Pointer] 302 // [] -> [Pointer] 304 // [Pointer] -> [Pointer] [all …]
|
H A D | Pointer.cpp | 24 Pointer::Pointer(Block *Pointee) in Pointer() function in Pointer 25 : Pointer(Pointee, Pointee->getDescriptor()->getMetadataSize(), in Pointer() 28 Pointer::Pointer(Block *Pointee, uint64_t BaseAndOffset) in Pointer() function in Pointer 29 : Pointer(Pointee, BaseAndOffset, BaseAndOffset) {} in Pointer() 31 Pointer::Pointer(const Pointer &P) in Pointer() function in Pointer 39 Pointer::Pointer(Block *Pointee, unsigned Base, uint64_t Offset) in Pointer() function in Pointer 49 Pointer::Pointer(Pointer &&P) in Pointer() function in Pointer 57 Pointer::~Pointer() { in ~Pointer() 67 void Pointer::operator=(const Pointer &P) { in operator =() 95 void Pointer::operator=(Pointer &&P) { in operator =() [all …]
|
H A D | Interp.h | 49 bool CheckExtern(InterpState &S, CodePtr OpPC, const Pointer &Ptr); 52 bool CheckArray(InterpState &S, CodePtr OpPC, const Pointer &Ptr); 55 bool CheckLive(InterpState &S, CodePtr OpPC, const Pointer &Ptr, 59 bool CheckDummy(InterpState &S, CodePtr OpPC, const Pointer &Ptr, 63 bool CheckNull(InterpState &S, CodePtr OpPC, const Pointer &Ptr, 67 bool CheckRange(InterpState &S, CodePtr OpPC, const Pointer &Ptr, 71 bool CheckRange(InterpState &S, CodePtr OpPC, const Pointer &Ptr, 75 bool CheckSubobject(InterpState &S, CodePtr OpPC, const Pointer &Ptr, 80 bool CheckDowncast(InterpState &S, CodePtr OpPC, const Pointer &Ptr, 84 bool CheckConst(InterpState &S, CodePtr OpPC, const Pointer &Ptr); [all …]
|
H A D | EvaluationResult.cpp | 23 if (const auto *P = std::get_if<Pointer>(&Value)) in toAPValue() 46 if (const auto *P = std::get_if<Pointer>(&Value)) in toRValue() 63 const Pointer &BasePtr, const Record *R); 66 const Pointer &BasePtr, in CheckArrayInitialized() 75 Pointer ElemPtr = BasePtr.atIndex(I).narrow(); in CheckArrayInitialized() 80 Pointer ElemPtr = BasePtr.atIndex(I).narrow(); in CheckArrayInitialized() 96 const Pointer &BasePtr, const Record *R) { in CheckFieldsInitialized() 101 Pointer FieldPtr = BasePtr.atField(F.Offset); in CheckFieldsInitialized() 126 Pointer P = BasePtr.atField(B.Offset); in CheckFieldsInitialized() 149 const Pointer &Ptr) const { in checkFullyInitialized() [all …]
|
H A D | InterpBlock.cpp | 19 void Block::addPointer(Pointer *P) { in addPointer() 36 void Block::removePointer(Pointer *P) { in removePointer() 61 void Block::replacePointer(Pointer *Old, Pointer *New) { in replacePointer() 85 bool Block::hasPointer(const Pointer *P) const { in hasPointer() 86 for (const Pointer *C = Pointers; C; C = C->Next) { in hasPointer() 107 for (Pointer *P = Blk->Pointers; P; P = P->Next) in DeadBlock()
|
H A D | InterpFrame.h | 23 class Pointer; variable 81 Pointer getLocalPointer(unsigned Offset) const; 88 return Pointer(reinterpret_cast<Block *>(Pt->second.get())).deref<T>(); in getParam() 97 Pointer getParamPointer(unsigned Offset); 100 const Pointer &getThis() const { return This; } in getThis() 103 const Pointer &getRVOPtr() const { return RVOPtr; } in getRVOPtr() 155 Pointer This; 157 Pointer RVOPtr;
|
H A D | InterpBlock.h | 29 class Pointer; variable 131 friend class Pointer; 147 void addPointer(Pointer *P); 148 void removePointer(Pointer *P); 149 void replacePointer(Pointer *Old, Pointer *New); 151 bool hasPointer(const Pointer *P) const; 156 Pointer *Pointers = nullptr;
|
H A D | InterpFrame.cpp | 58 RVOPtr = stackRef<Pointer>(0); in InterpFrame() 62 This = stackRef<Pointer>(sizeof(Pointer)); in InterpFrame() 64 This = stackRef<Pointer>(0); in InterpFrame() 103 void print(llvm::raw_ostream &OS, const Pointer &P, ASTContext &Ctx, in print() 131 llvm::SmallVector<Pointer, 2> Levels; in print() 132 for (Pointer F = P; !F.isRoot(); ) { in print() 215 Pointer InterpFrame::getLocalPointer(unsigned Offset) const { in getLocalPointer() 217 return Pointer(localBlock(Offset)); in getLocalPointer() 220 Pointer InterpFrame::getParamPointer(unsigned Off) { in getParamPointer() 223 return Pointer(reinterpret_cast<Block *>(Pt->second.get())); in getParamPointer() [all …]
|
H A D | Interp.cpp | 125 static bool CheckActive(InterpState &S, CodePtr OpPC, const Pointer &Ptr, in CheckActive() 134 Pointer U = Ptr.getBase(); in CheckActive() 144 const Pointer &Field = U.atField(R->getField(I)->Offset); in CheckActive() 157 static bool CheckTemporary(InterpState &S, CodePtr OpPC, const Pointer &Ptr, in CheckTemporary() 177 static bool CheckGlobal(InterpState &S, CodePtr OpPC, const Pointer &Ptr) { in CheckGlobal() 248 bool CheckExtern(InterpState &S, CodePtr OpPC, const Pointer &Ptr) { in CheckExtern() 263 bool CheckArray(InterpState &S, CodePtr OpPC, const Pointer &Ptr) { in CheckArray() 271 bool CheckLive(InterpState &S, CodePtr OpPC, const Pointer &Ptr, in CheckLive() 335 static bool CheckConstant(InterpState &S, CodePtr OpPC, const Pointer &Ptr) { in CheckConstant() 341 bool CheckNull(InterpState &S, CodePtr OpPC, const Pointer &Ptr, in CheckNull() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/ |
H A D | ubsan_handlers_cxx.cpp | 34 DynamicTypeCacheMissData *Data, ValueHandle Pointer, ValueHandle Hash, in HandleDynamicTypeCacheMiss() argument 36 if (checkDynamicType((void*)Pointer, Data->TypeInfo, Hash)) in HandleDynamicTypeCacheMiss() 41 DynamicTypeInfo DTI = getDynamicTypeInfoFromObject((void*)Pointer); in HandleDynamicTypeCacheMiss() 54 << TypeCheckKinds[Data->TypeCheckKind] << (void*)Pointer << Data->Type; in HandleDynamicTypeCacheMiss() 59 Diag(Pointer, DL_Note, ET, in HandleDynamicTypeCacheMiss() 62 << Range(Pointer, Pointer + sizeof(uptr), "possibly invalid vptr"); in HandleDynamicTypeCacheMiss() 64 Diag(Pointer, DL_Note, ET, "object has invalid vptr") in HandleDynamicTypeCacheMiss() 66 << Range(Pointer, Pointer + sizeof(uptr), "invalid vptr"); in HandleDynamicTypeCacheMiss() 69 Diag(Pointer, DL_Note, ET, "object is of type %0") in HandleDynamicTypeCacheMiss() 71 << Range(Pointer, Pointer + sizeof(uptr), "vptr for %0"); in HandleDynamicTypeCacheMiss() [all …]
|
/freebsd/sys/contrib/dev/acpica/components/executer/ |
H A D | exstorob.c | 195 Buffer = ACPI_CAST_PTR (UINT8, SourceDesc->Buffer.Pointer); in AcpiExStoreBufferToBuffer() 205 TargetDesc->Buffer.Pointer = ACPI_ALLOCATE (Length); in AcpiExStoreBufferToBuffer() 206 if (!TargetDesc->Buffer.Pointer) in AcpiExStoreBufferToBuffer() 220 memset (TargetDesc->Buffer.Pointer, 0, TargetDesc->Buffer.Length); in AcpiExStoreBufferToBuffer() 221 memcpy (TargetDesc->Buffer.Pointer, Buffer, Length); in AcpiExStoreBufferToBuffer() 250 memcpy (TargetDesc->Buffer.Pointer, Buffer, in AcpiExStoreBufferToBuffer() 300 Buffer = ACPI_CAST_PTR (UINT8, SourceDesc->String.Pointer); in AcpiExStoreStringToString() 314 memset (TargetDesc->String.Pointer, 0, in AcpiExStoreStringToString() 316 memcpy (TargetDesc->String.Pointer, Buffer, Length); in AcpiExStoreStringToString() 324 if (TargetDesc->String.Pointer && in AcpiExStoreStringToString() [all …]
|
H A D | exconcat.c | 354 Buffer = (char *) ReturnDesc->Buffer.Pointer; in AcpiExDoConcatenate() 380 Buffer = ReturnDesc->String.Pointer; in AcpiExDoConcatenate() 384 strcpy (Buffer, LocalOperand0->String.Pointer); in AcpiExDoConcatenate() 385 strcat (Buffer, LocalOperand1->String.Pointer); in AcpiExDoConcatenate() 401 Buffer = (char *) ReturnDesc->Buffer.Pointer; in AcpiExDoConcatenate() 405 memcpy (Buffer, Operand0->Buffer.Pointer, in AcpiExDoConcatenate() 408 LocalOperand1->Buffer.Pointer, in AcpiExDoConcatenate() 472 strcpy (ReturnDesc->String.Pointer, "["); in AcpiExConvertToObjectTypeString() 473 strcat (ReturnDesc->String.Pointer, TypeString); in AcpiExConvertToObjectTypeString() 474 strcat (ReturnDesc->String.Pointer, " Object]"); in AcpiExConvertToObjectTypeString() [all …]
|
H A D | exconvrt.c | 193 UINT8 *Pointer; in AcpiExConvertToInteger() local 216 Pointer = ObjDesc->Buffer.Pointer; in AcpiExConvertToInteger() 252 Result = AcpiUtImplicitStrtoul64 (ACPI_CAST_PTR (char, Pointer)); in AcpiExConvertToInteger() 256 Result = AcpiUtExplicitStrtoul64 (ACPI_CAST_PTR (char, Pointer)); in AcpiExConvertToInteger() 287 Result |= (((UINT64) Pointer[i]) << (i * 8)); in AcpiExConvertToInteger() 366 NewBuf = ReturnDesc->Buffer.Pointer; in AcpiExConvertToBuffer() 389 NewBuf = ReturnDesc->Buffer.Pointer; in AcpiExConvertToBuffer() 390 strncpy ((char *) NewBuf, (char *) ObjDesc->String.Pointer, in AcpiExConvertToBuffer() 605 NewBuf = ReturnDesc->Buffer.Pointer; in AcpiExConvertToString() 639 if (ObjDesc->Buffer.Pointer[i] >= 100) in AcpiExConvertToString() [all …]
|
/freebsd/sys/contrib/dev/acpica/components/debugger/ |
H A D | dbtest.c | 731 AcpiOsPrintf (" %2.2X", Temp1->Buffer.Pointer[i]); in AcpiDbTestBufferType() 752 WriteValue.Buffer.Pointer = Buffer; in AcpiDbTestBufferType() 768 if (memcmp (Temp2->Buffer.Pointer, Buffer, ByteLength)) in AcpiDbTestBufferType() 776 WriteValue.Buffer.Pointer = Temp1->Buffer.Pointer; in AcpiDbTestBufferType() 792 if (memcmp (Temp1->Buffer.Pointer, in AcpiDbTestBufferType() 793 Temp3->Buffer.Pointer, ByteLength)) in AcpiDbTestBufferType() 844 Temp1->String.Length, Temp1->String.Pointer); in AcpiDbTestStringType() 850 WriteValue.String.Pointer = ValueToWrite; in AcpiDbTestStringType() 866 if (strcmp (Temp2->String.Pointer, ValueToWrite)) in AcpiDbTestStringType() 869 Temp2->String.Pointer, ValueToWrite); in AcpiDbTestStringType() [all …]
|
H A D | dbcmds.c | 507 if (TableDesc->Pointer) in AcpiDbDisplayTableInfo() 509 AcpiTbPrintTableHeader (TableDesc->Address, TableDesc->Pointer); in AcpiDbDisplayTableInfo() 748 ReturnBuffer.Pointer = AcpiGbl_DbBuffer; in AcpiDbDisplayTemplate() 768 ReturnBuffer.Pointer)); in AcpiDbDisplayTemplate() 772 AcpiUtDebugDumpBuffer ((UINT8 *) Node->Object->Buffer.Pointer, in AcpiDbDisplayTemplate() 953 OriginalAml = ReturnBuffer.Pointer; in AcpiDmTestResourceConversion() 955 AcpiDmCompareAmlResources (OriginalAml->Buffer.Pointer, in AcpiDmTestResourceConversion() 957 NewAml.Pointer, (ACPI_RSDESC_SIZE) NewAml.Length); in AcpiDmTestResourceConversion() 961 ACPI_FREE (NewAml.Pointer); in AcpiDmTestResourceConversion() 963 ACPI_FREE (ResourceBuffer.Pointer); in AcpiDmTestResourceConversion() [all …]
|
/freebsd/sys/contrib/dev/acpica/components/utilities/ |
H A D | utcopy.c | 271 ExternalObject->String.Pointer = (char *) DataSpace; in AcpiUtCopyIsimpleToEsimple() 277 (void *) InternalObject->String.Pointer, in AcpiUtCopyIsimpleToEsimple() 283 ExternalObject->Buffer.Pointer = DataSpace; in AcpiUtCopyIsimpleToEsimple() 289 (void *) InternalObject->Buffer.Pointer, in AcpiUtCopyIsimpleToEsimple() 539 RetBuffer->Pointer, &RetBuffer->Length); in AcpiUtCopyIobjectToEobject() 547 ACPI_CAST_PTR (ACPI_OBJECT, RetBuffer->Pointer), in AcpiUtCopyIobjectToEobject() 548 ACPI_ADD_PTR (UINT8, RetBuffer->Pointer, in AcpiUtCopyIobjectToEobject() 630 InternalObject->String.Pointer = in AcpiUtCopyEsimpleToIsimple() 634 if (!InternalObject->String.Pointer) in AcpiUtCopyEsimpleToIsimple() 639 memcpy (InternalObject->String.Pointer, in AcpiUtCopyEsimpleToIsimple() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | Address.h | 51 RawAddress(llvm::Value *Pointer, llvm::Type *ElementType, CharUnits Alignment, 53 : PointerAndKnownNonNull(Pointer, IsKnownNonNull), in PointerAndKnownNonNull() argument 55 assert(Pointer != nullptr && "Pointer cannot be null"); in PointerAndKnownNonNull() 132 llvm::PointerIntPair<llvm::Value *, 1, bool> Pointer; variable 156 : Pointer(pointer, IsKnownNonNull), ElementType(elementType), in Pointer() function 166 : Pointer(BasePtr, IsKnownNonNull), ElementType(ElementType), in Pointer() function 170 : Pointer(RawAddr.isValid() ? RawAddr.getPointer() : nullptr, in Address() 177 bool isValid() const { return Pointer.getPointer() != nullptr; } in isValid() 183 assert(P->getType() == Pointer.getPointer()->getType() && in replaceBasePointer() 185 Pointer.setPointer(P); in replaceBasePointer() [all …]
|
/freebsd/sys/dev/fdc/ |
H A D | fdc_acpi.c | 111 buf.Pointer = malloc(buf.Length, M_TEMP, M_NOWAIT | M_ZERO); in fdc_acpi_attach() 112 if (buf.Pointer == NULL) in fdc_acpi_attach() 136 obj = buf.Pointer; in fdc_acpi_attach() 137 error = fdc_acpi_probe_children(bus, dev, obj->Buffer.Pointer); in fdc_acpi_attach() 140 if (buf.Pointer) in fdc_acpi_attach() 141 free(buf.Pointer, M_TEMP); in fdc_acpi_attach() 194 buf.Pointer = NULL; in fdc_acpi_probe_child() 217 buf.Pointer = malloc(buf.Length, M_TEMP, M_NOWAIT | M_ZERO); in fdc_acpi_probe_child() 218 if (buf.Pointer == NULL) in fdc_acpi_probe_child() 234 pkg = (ACPI_OBJECT *)buf.Pointer; in fdc_acpi_probe_child() [all …]
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-pdbutil/ |
H A D | PrettyFunctionDumper.cpp | 56 const char *Name, PointerType Pointer) { in start() argument 75 if (Pointer == PointerType::None) { in start() 93 if (Pointer == PointerType::Reference) in start() 119 void FunctionDumper::start(const PDBSymbolFunc &Symbol, PointerType Pointer) { in start() argument 157 if (Pointer == PointerType::Pointer) in start() 159 else if (Pointer == FunctionDumper::PointerType::Reference) in start() 170 if (Pointer != FunctionDumper::PointerType::None) in start() 179 if (Pointer != FunctionDumper::PointerType::None) { in start() 180 if (Pointer == PointerType::Pointer) in start() 182 else if (Pointer == FunctionDumper::PointerType::Reference) in start() [all …]
|
/freebsd/sys/contrib/dev/acpica/components/namespace/ |
H A D | nsconvert.c | 194 Status = AcpiUtStrtoul64 (OriginalObject->String.Pointer, &Value); in AcpiNsConvertToInteger() 215 OriginalObject->Buffer.Pointer[i] << (i * 8)); in AcpiNsConvertToInteger() 296 (OriginalObject->Buffer.Pointer[Length])) in AcpiNsConvertToString() 313 memcpy (NewObject->String.Pointer, in AcpiNsConvertToString() 314 OriginalObject->Buffer.Pointer, Length); in AcpiNsConvertToString() 381 memcpy (NewObject->Buffer.Pointer, in AcpiNsConvertToBuffer() 382 OriginalObject->String.Pointer, OriginalObject->String.Length); in AcpiNsConvertToBuffer() 418 DwordBuffer = ACPI_CAST_PTR (UINT32, NewObject->Buffer.Pointer); in AcpiNsConvertToBuffer() 487 AsciiString = OriginalObject->String.Pointer; in AcpiNsConvertToUnicode() 498 UnicodeBuffer = ACPI_CAST_PTR (UINT16, NewObject->Buffer.Pointer); in AcpiNsConvertToUnicode() [all …]
|
/freebsd/sys/contrib/dev/acpica/components/resources/ |
H A D | rscreate.c | 280 AmlStart = AmlBuffer->Buffer.Pointer; in ACPI_EXPORT_SYMBOL() 306 Resource = OutputBuffer->Pointer; in ACPI_EXPORT_SYMBOL() 315 OutputBuffer->Pointer, (UINT32) OutputBuffer->Length)); in ACPI_EXPORT_SYMBOL() 391 Buffer = OutputBuffer->Pointer; in AcpiRsCreatePciRoutingTable() 479 (UINT8 *) OutputBuffer->Pointer); in AcpiRsCreatePciRoutingTable() 480 PathBuffer.Pointer = UserPrt->Source; in AcpiRsCreatePciRoutingTable() 496 strcpy (UserPrt->Source, ObjDesc->String.Pointer); in AcpiRsCreatePciRoutingTable() 547 OutputBuffer->Pointer, (UINT32) OutputBuffer->Length)); in AcpiRsCreatePciRoutingTable() 584 ResourceList->Pointer)); in AcpiRsCreateAmlResources() 589 ResourceList->Pointer, ResourceList->Length, &AmlSizeNeeded); in AcpiRsCreateAmlResources() [all …]
|
/freebsd/sys/contrib/dev/acpica/components/tables/ |
H A D | tbinstal.c | 206 NewTableDesc->Address, NewTableDesc->Flags, NewTableDesc->Pointer); in AcpiTbInstallTableWithOverride() 208 AcpiTbPrintTableHeader (NewTableDesc->Address, NewTableDesc->Pointer); in AcpiTbInstallTableWithOverride() 218 AcpiUtSetIntegerWidth (NewTableDesc->Pointer->Revision); in AcpiTbInstallTableWithOverride() 322 AcpiTbNotifyTable (ACPI_TABLE_EVENT_INSTALL, NewTableDesc.Pointer); in AcpiTbInstallStandardTable() 371 Status = AcpiOsTableOverride (OldTableDesc->Pointer, &Table); in AcpiTbOverrideTable() 382 Status = AcpiOsPhysicalTableOverride (OldTableDesc->Pointer, in AcpiTbOverrideTable() 422 NewTableDesc.Flags, NewTableDesc.Pointer); in AcpiTbOverrideTable() 463 ACPI_FREE (TableDesc->Pointer); in AcpiTbUninstallTable() 464 TableDesc->Pointer = NULL; in AcpiTbUninstallTable()
|
/freebsd/sys/dev/nvdimm/ |
H A D | nvdimm.c | 80 result.Pointer = NULL; in read_label_area_size() 85 if (ACPI_SUCCESS(status) && result.Pointer != NULL && in read_label_area_size() 87 result_buffer = result.Pointer; in read_label_area_size() 90 out = (uint32_t *)result_buffer->Buffer.Pointer; in read_label_area_size() 96 if (result.Pointer != NULL) in read_label_area_size() 97 AcpiOsFree(result.Pointer); in read_label_area_size() 124 params_buf.Buffer.Pointer = (UINT8 *)params; in read_label_area() 130 result.Pointer = NULL; in read_label_area() 136 result.Pointer == NULL) { in read_label_area() 140 result_buf = (ACPI_OBJECT *)result.Pointer; in read_label_area() [all …]
|
/freebsd/sys/dev/acpi_support/ |
H A D | atk0110.c | 197 *descr = o->Package.Elements[1].String.Pointer; in aibs_add_sensor() 272 arg.Pointer = &id; in aibs_attach_ggrp() 274 buf.Pointer = NULL; in aibs_attach_ggrp() 282 bp = buf.Pointer; in aibs_attach_ggrp() 325 AcpiOsFree(buf.Pointer); in aibs_attach_ggrp() 370 bp = b.Pointer; in aibs_attach_sif() 374 AcpiOsFree(b.Pointer); in aibs_attach_sif() 381 AcpiOsFree(b.Pointer); in aibs_attach_sif() 395 AcpiOsFree(b.Pointer); in aibs_attach_sif() 425 AcpiOsFree(b.Pointer); in aibs_attach_sif() [all …]
|