| /netbsd-src/external/apache2/llvm/dist/clang/lib/AST/Interp/ |
| H A D | Interp.cpp | 101 static bool CheckInitialized(InterpState &S, CodePtr OpPC, const Pointer &Ptr, in CheckInitialized() argument 103 if (Ptr.isInitialized()) in CheckInitialized() 112 static bool CheckActive(InterpState &S, CodePtr OpPC, const Pointer &Ptr, in CheckActive() argument 114 if (Ptr.isActive()) in CheckActive() 118 const FieldDecl *InactiveField = Ptr.getField(); in CheckActive() 121 Pointer U = Ptr.getBase(); in CheckActive() 144 static bool CheckTemporary(InterpState &S, CodePtr OpPC, const Pointer &Ptr, in CheckTemporary() argument 146 if (auto ID = Ptr.getDeclID()) { in CheckTemporary() 147 if (!Ptr.isStaticTemporary()) in CheckTemporary() 150 if (Ptr.getDeclDesc()->getType().isConstQualified()) in CheckTemporary() [all …]
|
| H A D | Source.h | 27 CodePtr() : Ptr(nullptr) {} in CodePtr() 30 Ptr += Offset; 35 assert(Ptr != nullptr && RHS.Ptr != nullptr && "Invalid code pointer"); 36 return Ptr - RHS.Ptr; 40 assert(Ptr != nullptr && "Invalid code pointer"); 41 return CodePtr(Ptr - RHS); 44 bool operator!=(const CodePtr &RHS) const { return Ptr != RHS.Ptr; } 48 T Value = ReadHelper<T>(Ptr); in read() 49 Ptr += sizeof(T); in read() 55 CodePtr(const char *Ptr) : Ptr(Ptr) {} in CodePtr() argument [all …]
|
| H A D | Interp.h | 47 bool CheckExtern(InterpState &S, CodePtr OpPC, const Pointer &Ptr); 50 bool CheckArray(InterpState &S, CodePtr OpPC, const Pointer &Ptr); 53 bool CheckLive(InterpState &S, CodePtr OpPC, const Pointer &Ptr, 56 bool CheckNull(InterpState &S, CodePtr OpPC, const Pointer &Ptr, 60 bool CheckRange(InterpState &S, CodePtr OpPC, const Pointer &Ptr, 64 bool CheckRange(InterpState &S, CodePtr OpPC, const Pointer &Ptr, 68 bool CheckConst(InterpState &S, CodePtr OpPC, const Pointer &Ptr); 71 bool CheckMutable(InterpState &S, CodePtr OpPC, const Pointer &Ptr); 74 bool CheckLoad(InterpState &S, CodePtr OpPC, const Pointer &Ptr); 77 bool CheckStore(InterpState &S, CodePtr OpPC, const Pointer &Ptr); [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/ |
| H A D | Twine.cpp | 57 void Twine::printOneChild(raw_ostream &OS, Child Ptr, in printOneChild() argument 63 Ptr.twine->print(OS); in printOneChild() 66 OS << Ptr.cString; in printOneChild() 69 OS << *Ptr.stdString; in printOneChild() 72 OS << *Ptr.stringRef; in printOneChild() 75 OS << *Ptr.smallString; in printOneChild() 78 OS << *Ptr.formatvObject; in printOneChild() 81 OS << Ptr.character; in printOneChild() 84 OS << Ptr.decUI; in printOneChild() 87 OS << Ptr.decI; in printOneChild() [all …]
|
| H A D | FormattedStream.cpp | 26 void formatted_raw_ostream::UpdatePosition(const char *Ptr, size_t Size) { in UpdatePosition() argument 61 PartialUTF8Char.append(StringRef(Ptr, Size)); in UpdatePosition() 67 PartialUTF8Char.append(StringRef(Ptr, BytesFromBuffer)); in UpdatePosition() 70 Ptr += BytesFromBuffer; in UpdatePosition() 77 for (const char *End = Ptr + Size; Ptr < End; Ptr += NumBytes) { in UpdatePosition() 78 NumBytes = getNumBytesForUTF8(*Ptr); in UpdatePosition() 85 if ((unsigned)(End - Ptr) < NumBytes) { in UpdatePosition() 86 PartialUTF8Char = StringRef(Ptr, End - Ptr); in UpdatePosition() 90 ProcessUTF8CodePoint(StringRef(Ptr, NumBytes)); in UpdatePosition() 96 void formatted_raw_ostream::ComputePosition(const char *Ptr, size_t Size) { in ComputePosition() argument [all …]
|
| H A D | DynamicLibrary.cpp | 77 if (void *Ptr = DLSym(Handle, Symbol)) in LibLookup() local 78 return Ptr; in LibLookup() 82 if (void *Ptr = DLSym(Handle, Symbol)) in LibLookup() local 83 return Ptr; in LibLookup() 94 if (void *Ptr = LibLookup(Symbol, Order)) in Lookup() local 95 return Ptr; in Lookup() 99 if (void *Ptr = DLSym(Process, Symbol)) in Lookup() local 100 return Ptr; in Lookup() 104 if (void *Ptr = LibLookup(Symbol, Order)) in Lookup() local 105 return Ptr; in Lookup() [all …]
|
| /netbsd-src/sys/arch/mac68k/dev/ |
| H A D | ams.c | 124 adbinfo.siServiceRtPtr = (Ptr)adb_ms_asmcomplete; in amsattach() 257 adb_op_sync((Ptr)buffer, (Ptr)0, (Ptr)0, cmd); in ems_init() 267 if (adb_op_sync((Ptr)buffer, (Ptr)0, (Ptr)0, cmd)) { in ems_init() 278 if (adb_op_sync((Ptr)buffer, (Ptr)0, (Ptr) in ems_init() [all...] |
| H A D | akbd.c | 152 adbinfo.siServiceRtPtr = (Ptr)adb_kbd_asmcomplete; in akbdattach() 165 (adb_op_sync((Ptr)buffer, (Ptr)0, (Ptr)0, cmd) == 0); in akbdattach() 170 adbinfo.siServiceRtPtr = (Ptr)0; in akbdattach() 171 adbinfo.siDataAreaAddr = (Ptr)0; in akbdattach() 177 adbinfo.siServiceRtPtr = (Ptr)0; in akbdattach() 178 adbinfo.siDataAreaAddr = (Ptr)0; in akbdattach() 369 if (adb_op_sync((Ptr)buffer, (Ptr) in getleds() [all...] |
| /netbsd-src/sys/arch/macppc/dev/ |
| H A D | ams.c | 121 adbinfo.siServiceRtPtr = (Ptr)ms_adbcomplete; in amsattach() 255 adb_op_sync((Ptr)buffer, NULL, (Ptr)0, cmd); in ems_init() 269 adb_op_sync((Ptr)buffer, NULL, (Ptr)0, ADBFLUSH(adbaddr)); in ems_init() 271 adb_op_sync((Ptr)data1, NULL, (Ptr)0, ADBLISTEN(adbaddr, 2)); in ems_init() 274 adb_op_sync((Ptr)buffer, NULL, (Ptr)0, ADBFLUSH(adbaddr)); in ems_init() 276 adb_op_sync((Ptr)data2, NULL, (Ptr)0, ADBLISTEN(adbaddr, 2)); in ems_init() 283 if (adb_op_sync((Ptr)buffer, NULL, (Ptr)0, cmd)) { in ems_init() 294 if (adb_op_sync((Ptr)buffer, NULL, (Ptr)0, cmd)) { in ems_init() 307 if (adb_op_sync((Ptr)buffer, NULL, (Ptr)0, cmd) == 0 && in ems_init() 311 if (adb_op_sync((Ptr)buffer, NULL, (Ptr)0, cmd)) { in ems_init() [all …]
|
| H A D | adbvar.h | 56 typedef void *Ptr; typedef 61 Ptr siServiceRtPtr; 62 Ptr siDataAreaAddr; 67 Ptr dbServiceRtPtr; 68 Ptr dbDataAreaAddr; 102 int ADBOp(Ptr buffer, adbComp *compRout, Ptr data, short commandNum); 106 int adb_op_sync(Ptr, adbComp *, Ptr, short);
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/ |
| H A D | IdentifierResolver.cpp | 149 void *Ptr = Name.getFETokenInfo(); in AddDecl() local 151 if (!Ptr) { in AddDecl() 158 if (isDeclPtr(Ptr)) { in AddDecl() 161 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); in AddDecl() 164 IDI = toIdDeclInfo(Ptr); in AddDecl() 174 void *Ptr = Name.getFETokenInfo(); in InsertDeclAfter() local 176 if (!Ptr) { in InsertDeclAfter() 181 if (isDeclPtr(Ptr)) { in InsertDeclAfter() 186 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); in InsertDeclAfter() 200 IdDeclInfo *IDI = toIdDeclInfo(Ptr); in InsertDeclAfter() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/Sema/ |
| H A D | IdentifierResolver.h | 83 uintptr_t Ptr = 0; variable 88 Ptr = reinterpret_cast<uintptr_t>(D); in iterator() 89 assert((Ptr & 0x1) == 0 && "Invalid Ptr!"); in iterator() 95 Ptr = reinterpret_cast<uintptr_t>(I) | 0x1; in iterator() 98 bool isIterator() const { return (Ptr & 0x1); } in isIterator() 102 return reinterpret_cast<BaseIter>(Ptr & ~0x1); in getIterator() 114 return reinterpret_cast<NamedDecl*>(Ptr); 118 return Ptr == RHS.Ptr; 121 return Ptr != RHS.Ptr; 127 Ptr = 0; [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-objcopy/COFF/ |
| H A D | Writer.cpp | 244 uint8_t *Ptr = reinterpret_cast<uint8_t *>(Buf->getBufferStart()); in writeHeaders() local 246 memcpy(Ptr, &Obj.DosHeader, sizeof(Obj.DosHeader)); in writeHeaders() 247 Ptr += sizeof(Obj.DosHeader); in writeHeaders() 248 memcpy(Ptr, Obj.DosStub.data(), Obj.DosStub.size()); in writeHeaders() 249 Ptr += Obj.DosStub.size(); in writeHeaders() 250 memcpy(Ptr, PEMagic, sizeof(PEMagic)); in writeHeaders() 251 Ptr += sizeof(PEMagic); in writeHeaders() 254 memcpy(Ptr, &Obj.CoffFileHeader, sizeof(Obj.CoffFileHeader)); in writeHeaders() 255 Ptr += sizeof(Obj.CoffFileHeader); in writeHeaders() 277 memcpy(Ptr, &BigObjHeader, sizeof(BigObjHeader)); in writeHeaders() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Support/ |
| H A D | SMLoc.h | 24 const char *Ptr = nullptr; variable 29 bool isValid() const { return Ptr != nullptr; } in isValid() 31 bool operator==(const SMLoc &RHS) const { return RHS.Ptr == Ptr; } 32 bool operator!=(const SMLoc &RHS) const { return RHS.Ptr != Ptr; } 34 const char *getPointer() const { return Ptr; } in getPointer() 36 static SMLoc getFromPointer(const char *Ptr) { in getFromPointer() argument 38 L.Ptr = Ptr; in getFromPointer()
|
| H A D | ManagedStatic.h | 29 static void call(void *Ptr) { delete (T *)Ptr; } in call() 32 static void call(void *Ptr) { delete[](T *)Ptr; } 52 mutable std::atomic<void *> Ptr{}; 58 mutable std::atomic<void *> Ptr; 71 bool isConstructed() const { return Ptr != nullptr; } 87 void *Tmp = Ptr.load(std::memory_order_acquire); 91 return *static_cast<C *>(Ptr.load(std::memory_order_relaxed)); 97 void *Tmp = Ptr.load(std::memory_order_acquire); 101 return *static_cast<C *>(Ptr.load(std::memory_order_relaxed)); 109 return static_cast<C *>(Ptr.exchange(nullptr));
|
| H A D | ArrayRecycler.h | 56 void push(unsigned Idx, T *Ptr) { in push() argument 57 assert(Ptr && "Cannot recycle NULL pointer"); in push() 58 FreeList *Entry = reinterpret_cast<FreeList*>(Ptr); in push() 63 __asan_poison_memory_region(Ptr, Capacity::get(Idx).getSize()); in push() 106 while (T *Ptr = pop(Bucket.size() - 1)) in clear() local 107 Allocator.Deallocate(Ptr); in clear() 127 if (T *Ptr = pop(Cap.getBucket())) in allocate() local 128 return Ptr; in allocate() 137 void deallocate(Capacity Cap, T *Ptr) { in deallocate() argument 138 push(Cap.getBucket(), Ptr); in deallocate()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ADT/ |
| H A D | SmallPtrSet.h | 125 std::pair<const void *const *, bool> insert_imp(const void *Ptr) { in insert_imp() argument 132 if (Value == Ptr) in insert_imp() 140 *LastTombstone = Ptr; in insert_imp() 148 SmallArray[NumNonEmpty++] = Ptr; in insert_imp() 154 return insert_imp_big(Ptr); in insert_imp() 161 bool erase_imp(const void * Ptr) { in erase_imp() argument 162 const void *const *P = find_imp(Ptr); in erase_imp() 167 assert(*Loc == Ptr && "broken find!"); in erase_imp() 176 const void *const * find_imp(const void * Ptr) const { in find_imp() argument 181 if (*APtr == Ptr) in find_imp() [all …]
|
| /netbsd-src/sys/arch/mac68k/mac68k/ |
| H A D | macrom.h | 82 typedef void *Ptr; typedef 87 Ptr siServiceRtPtr; 88 Ptr siDataAreaAddr; 93 Ptr dbServiceRtPtr; 94 Ptr dbDataAreaAddr; 116 int ADBOp(Ptr, Ptr, Ptr, short); 121 Ptr NewPtr(int); 122 int DisposPtr(Ptr); 123 int GetPtrSize(Ptr); 124 int SetPtrSize(Ptr, int);
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/ |
| H A D | LoopAccessAnalysis.cpp | 145 Value *Ptr, Value *OrigPtr) { in replaceSymbolicStrideSCEV() argument 146 const SCEV *OrigSCEV = PSE.getSCEV(Ptr); in replaceSymbolicStrideSCEV() 151 PtrToStride.find(OrigPtr ? OrigPtr : Ptr); in replaceSymbolicStrideSCEV() 164 auto *Expr = PSE.getSCEV(Ptr); in replaceSymbolicStrideSCEV() 191 void RuntimePointerChecking::insert(Loop *Lp, Value *Ptr, bool WritePtr, in insert() argument 196 const SCEV *Sc = replaceSymbolicStrideSCEV(PSE, Strides, Ptr); in insert() 227 Type *IdxTy = DL.getIndexType(Ptr->getType()); in insert() 229 SE->getStoreSizeOfExpr(IdxTy, Ptr->getType()->getPointerElementType()); in insert() 233 Pointers.emplace_back(Ptr, ScStart, ScEnd, WritePtr, DepSetId, ASId, Sc); in insert() 516 Value *Ptr = const_cast<Value*>(Loc.Ptr); in addLoad() local [all …]
|
| /netbsd-src/sys/external/bsd/acpica/dist/os_specific/service_layers/ |
| H A D | osgendbg.c | 83 char *Ptr = BatchBuffer; in AcpiDbRunRemoteDebugger() local 84 char *Cmd = Ptr; in AcpiDbRunRemoteDebugger() 91 if (*Ptr) in AcpiDbRunRemoteDebugger() 93 while (*Ptr) in AcpiDbRunRemoteDebugger() 95 if (*Ptr == ',') in AcpiDbRunRemoteDebugger() 98 *Ptr = ' '; in AcpiDbRunRemoteDebugger() 100 else if (*Ptr == ';') in AcpiDbRunRemoteDebugger() 102 *Ptr = '\0'; in AcpiDbRunRemoteDebugger() 106 Ptr++; in AcpiDbRunRemoteDebugger() 110 Ptr++; in AcpiDbRunRemoteDebugger() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/ |
| H A D | ExternalASTSource.h | 331 mutable uint64_t Ptr = 0; member 335 explicit LazyOffsetPtr(T *Ptr) : Ptr(reinterpret_cast<uint64_t>(Ptr)) {} in LazyOffsetPtr() 337 explicit LazyOffsetPtr(uint64_t Offset) : Ptr((Offset << 1) | 0x01) { in LazyOffsetPtr() 340 Ptr = 0; in LazyOffsetPtr() 343 LazyOffsetPtr &operator=(T *Ptr) { 344 this->Ptr = reinterpret_cast<uint64_t>(Ptr); 351 Ptr = 0; 353 Ptr = (Offset << 1) | 0x01; 361 explicit operator bool() const { return Ptr != 0; } 366 bool isValid() const { return Ptr != 0; } in isValid() [all …]
|
| H A D | Redeclarable.h | 350 CanonicalDeclPtr(decl_type *Ptr) in CanonicalDeclPtr() argument 351 : Ptr(Ptr ? Ptr->getCanonicalDecl() : nullptr) {} in CanonicalDeclPtr() 355 operator decl_type *() { return Ptr; } 356 operator const decl_type *() const { return Ptr; } 358 decl_type *operator->() { return Ptr; } 359 const decl_type *operator->() const { return Ptr; } 361 decl_type &operator*() { return *Ptr; } 362 const decl_type &operator*() const { return *Ptr; } 365 return LHS.Ptr == RHS.Ptr; 368 return LHS.Ptr != RHS.Ptr; [all …]
|
| H A D | DependentDiagnostic.h | 128 explicit ddiag_iterator(DependentDiagnostic *Ptr) : Ptr(Ptr) {} in ddiag_iterator() argument 136 reference operator*() const { return Ptr; } 139 assert(Ptr && "attempt to increment past end of diag list"); 140 Ptr = Ptr->NextDiagnostic; 151 return Ptr == Other.Ptr; 155 return Ptr != Other.Ptr; 172 DependentDiagnostic *Ptr = nullptr;
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/Lex/ |
| H A D | Lexer.h | 547 static inline char getCharAndSizeNoWarn(const char *Ptr, unsigned &Size, in getCharAndSizeNoWarn() argument 551 if (isObviouslySimpleCharacter(Ptr[0])) { in getCharAndSizeNoWarn() 553 return *Ptr; in getCharAndSizeNoWarn() 557 return getCharAndSizeSlowNoWarn(Ptr, Size, LangOpts); in getCharAndSizeNoWarn() 630 inline char getAndAdvanceChar(const char *&Ptr, Token &Tok) { in getAndAdvanceChar() argument 633 if (isObviouslySimpleCharacter(Ptr[0])) return *Ptr++; in getAndAdvanceChar() 636 char C = getCharAndSizeSlow(Ptr, Size, &Tok); in getAndAdvanceChar() 637 Ptr += Size; in getAndAdvanceChar() 645 const char *ConsumeChar(const char *Ptr, unsigned Size, Token &Tok) { in ConsumeChar() argument 648 return Ptr+Size; in ConsumeChar() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUAnnotateUniformValues.cpp | 84 Value *Ptr = I.getPointerOperand(); in visitLoadInst() local 85 if (!DA->isUniform(Ptr)) in visitLoadInst() 93 Instruction *PtrI = dyn_cast<Instruction>(Ptr); in visitLoadInst() 105 else if (isa<Argument>(Ptr) || isa<GlobalValue>(Ptr)) { in visitLoadInst() 109 if (noClobberClones.count(Ptr)) { in visitLoadInst() 110 PtrI = noClobberClones[Ptr]; in visitLoadInst() 115 Type::getInt32Ty(Ptr->getContext()), APInt(64, 0)); in visitLoadInst() 118 Ptr->getType()->getPointerElementType(), Ptr, in visitLoadInst() 121 I.replaceUsesOfWith(Ptr, PtrI); in visitLoadInst()
|