Home
last modified time | relevance | path

Searched refs:FD (Results 1 – 25 of 858) sorted by relevance

12345678910>>...35

/external/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/
Dresult_of11.pass.cpp28 struct FD : public F {}; struct
78 test_result_of_imp<PMD(FD &), char &>(); in main()
79 test_result_of_imp<PMD(FD const &), char const &>(); in main()
80 test_result_of_imp<PMD(FD volatile &), char volatile &>(); in main()
81 test_result_of_imp<PMD(FD const volatile &), char const volatile &>(); in main()
83 test_result_of_imp<PMD(FD &&), char &&>(); in main()
84 test_result_of_imp<PMD(FD const &&), char const &&>(); in main()
85 test_result_of_imp<PMD(FD volatile &&), char volatile &&>(); in main()
86 test_result_of_imp<PMD(FD const volatile &&), char const volatile &&>(); in main()
88 test_result_of_imp<PMD(FD ), char &&>(); in main()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/RISCV/
Dinterrupt-attr.ll7 ; RUN: 2>&1 | FileCheck %s -check-prefix CHECK -check-prefix CHECK-RV32-FD
14 ; RUN: 2>&1 | FileCheck %s -check-prefix CHECK -check-prefix CHECK-RV64-FD
196 ; CHECK-RV32-FD-LABEL: foo_with_call:
197 ; CHECK-RV32-FD: # %bb.0:
198 ; CHECK-RV32-FD-NEXT: addi sp, sp, -320
199 ; CHECK-RV32-FD-NEXT: sw ra, 316(sp)
200 ; CHECK-RV32-FD-NEXT: sw t0, 312(sp)
201 ; CHECK-RV32-FD-NEXT: sw t1, 308(sp)
202 ; CHECK-RV32-FD-NEXT: sw t2, 304(sp)
203 ; CHECK-RV32-FD-NEXT: sw a0, 300(sp)
[all …]
Dinterrupt-attr-nocall.ll7 ; RUN: 2>&1 | FileCheck %s -check-prefix CHECK-RV32-FD
155 ; CHECK-RV32-FD-LABEL: foo_double:
156 ; CHECK-RV32-FD: # %bb.0:
157 ; CHECK-RV32-FD-NEXT: addi sp, sp, -32
158 ; CHECK-RV32-FD-NEXT: sw a0, 28(sp)
159 ; CHECK-RV32-FD-NEXT: fsd ft0, 16(sp)
160 ; CHECK-RV32-FD-NEXT: fsd ft1, 8(sp)
161 ; CHECK-RV32-FD-NEXT: lui a0, %hi(i)
162 ; CHECK-RV32-FD-NEXT: fld ft0, %lo(i)(a0)
163 ; CHECK-RV32-FD-NEXT: lui a0, %hi(h)
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DCheckSecuritySyntaxOnly.cpp87 bool checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD);
93 void checkCall_gets(const CallExpr *CE, const FunctionDecl *FD);
94 void checkCall_getpw(const CallExpr *CE, const FunctionDecl *FD);
95 void checkCall_mktemp(const CallExpr *CE, const FunctionDecl *FD);
96 void checkCall_mkstemp(const CallExpr *CE, const FunctionDecl *FD);
97 void checkCall_strcpy(const CallExpr *CE, const FunctionDecl *FD);
98 void checkCall_strcat(const CallExpr *CE, const FunctionDecl *FD);
99 void checkCall_rand(const CallExpr *CE, const FunctionDecl *FD);
100 void checkCall_random(const CallExpr *CE, const FunctionDecl *FD);
101 void checkCall_vfork(const CallExpr *CE, const FunctionDecl *FD);
[all …]
DVirtualCallChecker.cpp71 const FunctionDecl *FD = WLUnit->getDirectCallee(); in Enqueue() local
72 if (!FD || !FD->getBody()) in Enqueue()
74 Kind &K = VisitedFunctions[FD]; in Enqueue()
90 const FunctionDecl *FD = WLUnit->getDirectCallee(); in Execute() local
91 assert(FD && FD->getBody()); in Execute()
93 if (VisitedFunctions[FD] == PreVisited) { in Execute()
97 Visit(FD->getBody()); in Execute()
101 VisitedFunctions[FD] = PostVisited; in Execute()
107 assert(VisitedFunctions[FD] == PostVisited); in Execute()
184 const FunctionDecl *FD = (*(I-1))->getDirectCallee(); in ReportVirtualCall() local
[all …]
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DMemoryBuffer.cpp210 MemoryBufferMMapFile(bool RequiresNullTerminator, int FD, uint64_t Len, in MemoryBufferMMapFile() argument
212 : MFR(FD, sys::fs::mapped_file_region::readonly, in MemoryBufferMMapFile()
236 getMemoryBufferForStream(int FD, const Twine &BufferName) { in getMemoryBufferForStream() argument
243 ReadBytes = read(FD, Buffer.end(), ChunkSize); in getMemoryBufferForStream()
263 getOpenFileImpl(int FD, const Twine &Filename, uint64_t FileSize,
270 int FD; in getFileAux() local
271 std::error_code EC = sys::fs::openFileForRead(Filename, FD); in getFileAux()
276 getOpenFileImpl(FD, Filename, FileSize, MapSize, Offset, in getFileAux()
278 close(FD); in getFileAux()
282 static bool shouldUseMmap(int FD, in shouldUseMmap() argument
[all …]
Draw_ostream.cpp479 int FD; in getFD() local
480 EC = sys::fs::openFileForWrite(Filename, FD, Flags); in getFD()
484 return FD; in getFD()
494 : raw_pwrite_stream(unbuffered), FD(fd), ShouldClose(shouldClose), in raw_fd_ostream()
496 if (FD < 0 ) { in raw_fd_ostream()
502 off_t loc = ::lseek(FD, 0, SEEK_CUR); in raw_fd_ostream()
506 std::error_code EC = status(FD, Status); in raw_fd_ostream()
518 if (FD >= 0) { in ~raw_fd_ostream()
520 if (ShouldClose && sys::Process::SafelyCloseFileDescriptor(FD)) in ~raw_fd_ostream()
529 if (FD == 2) return; in ~raw_fd_ostream()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DMemoryBuffer.cpp186 MemoryBufferMMapFile(bool RequiresNullTerminator, int FD, uint64_t Len, in MemoryBufferMMapFile() argument
188 : MFR(FD, MB::Mapmode, getLegalMapSize(Len, Offset), in MemoryBufferMMapFile()
212 getMemoryBufferForStream(int FD, const Twine &BufferName) { in getMemoryBufferForStream() argument
219 ReadBytes = sys::RetryAfterSignal(-1, ::read, FD, Buffer.end(), ChunkSize); in getMemoryBufferForStream()
238 getOpenFileImpl(int FD, const Twine &Filename, uint64_t FileSize,
246 int FD; in getFileAux() local
247 std::error_code EC = sys::fs::openFileForRead(Filename, FD, sys::fs::OF_None); in getFileAux()
252 auto Ret = getOpenFileImpl<MB>(FD, Filename, FileSize, MapSize, Offset, in getFileAux()
254 close(FD); in getFileAux()
308 static bool shouldUseMmap(int FD, in shouldUseMmap() argument
[all …]
Draw_ostream.cpp517 int FD; in getFD() local
519 EC = sys::fs::openFileForReadWrite(Filename, FD, Disp, Flags); in getFD()
521 EC = sys::fs::openFileForWrite(Filename, FD, Disp, Flags); in getFD()
525 return FD; in getFD()
555 : raw_pwrite_stream(unbuffered), FD(fd), ShouldClose(shouldClose) { in raw_fd_ostream()
556 if (FD < 0 ) { in raw_fd_ostream()
567 if (FD <= STDERR_FILENO) in raw_fd_ostream()
571 off_t loc = ::lseek(FD, 0, SEEK_CUR); in raw_fd_ostream()
575 std::error_code EC = status(FD, Status); in raw_fd_ostream()
587 if (FD >= 0) { in ~raw_fd_ostream()
[all …]
/external/llvm/lib/Support/
DMemoryBuffer.cpp210 MemoryBufferMMapFile(bool RequiresNullTerminator, int FD, uint64_t Len, in MemoryBufferMMapFile() argument
212 : MFR(FD, sys::fs::mapped_file_region::readonly, in MemoryBufferMMapFile()
236 getMemoryBufferForStream(int FD, const Twine &BufferName) { in getMemoryBufferForStream() argument
243 ReadBytes = read(FD, Buffer.end(), ChunkSize); in getMemoryBufferForStream()
263 getOpenFileImpl(int FD, const Twine &Filename, uint64_t FileSize,
270 int FD; in getFileAux() local
271 std::error_code EC = sys::fs::openFileForRead(Filename, FD); in getFileAux()
276 getOpenFileImpl(FD, Filename, FileSize, MapSize, Offset, in getFileAux()
278 close(FD); in getFileAux()
282 static bool shouldUseMmap(int FD, in shouldUseMmap() argument
[all …]
Draw_ostream.cpp505 int FD; in getFD() local
506 EC = sys::fs::openFileForWrite(Filename, FD, Flags); in getFD()
510 return FD; in getFD()
520 : raw_pwrite_stream(unbuffered), FD(fd), ShouldClose(shouldClose), in raw_fd_ostream()
522 if (FD < 0 ) { in raw_fd_ostream()
528 off_t loc = ::lseek(FD, 0, SEEK_CUR); in raw_fd_ostream()
532 std::error_code EC = status(FD, Status); in raw_fd_ostream()
544 if (FD >= 0) { in ~raw_fd_ostream()
546 if (ShouldClose && sys::Process::SafelyCloseFileDescriptor(FD)) in ~raw_fd_ostream()
555 if (FD == 2) return; in ~raw_fd_ostream()
[all …]
/external/clang/lib/CodeGen/
DCGRecordLayout.h99 const FieldDecl *FD,
185 unsigned getLLVMFieldNo(const FieldDecl *FD) const { in getLLVMFieldNo() argument
186 FD = FD->getCanonicalDecl(); in getLLVMFieldNo()
187 assert(FieldInfo.count(FD) && "Invalid field for record!"); in getLLVMFieldNo()
188 return FieldInfo.lookup(FD); in getLLVMFieldNo()
204 const CGBitFieldInfo &getBitFieldInfo(const FieldDecl *FD) const { in getBitFieldInfo() argument
205 FD = FD->getCanonicalDecl(); in getBitFieldInfo()
206 assert(FD->isBitField() && "Invalid call for non-bit-field decl!"); in getBitFieldInfo()
208 it = BitFields.find(FD); in getBitFieldInfo()
DCGRecordLayoutBuilder.cpp83 const FieldDecl *FD; member
87 const FieldDecl *FD = nullptr) in MemberInfo()
88 : Offset(Offset), Kind(Kind), Data(Data), FD(FD) {} in MemberInfo()
135 llvm::Type *getStorageType(const FieldDecl *FD) { in getStorageType()
136 llvm::Type *Type = Types.ConvertTypeForMem(FD->getType()); in getStorageType()
137 if (!FD->isBitField()) return Type; in getStorageType()
139 return getIntNType(std::min(FD->getBitWidthValue(Context), in getStorageType()
155 bool isZeroInitializable(const FieldDecl *FD) { in isZeroInitializable()
156 return Types.isZeroInitializable(FD->getType()); in isZeroInitializable()
165 uint64_t getFieldBitOffset(const FieldDecl *FD) { in getFieldBitOffset()
[all …]
DCodeGenFunction.cpp442 static void GenOpenCLArgMetadata(const FunctionDecl *FD, llvm::Function *Fn, in GenOpenCLArgMetadata() argument
469 for (unsigned i = 0, e = FD->getNumParams(); i != e; ++i) { in GenOpenCLArgMetadata()
470 const ParmVarDecl *parm = FD->getParamDecl(i); in GenOpenCLArgMetadata()
595 void CodeGenFunction::EmitOpenCLKernelMetadata(const FunctionDecl *FD, in EmitOpenCLKernelMetadata() argument
598 if (!FD->hasAttr<OpenCLKernelAttr>()) in EmitOpenCLKernelMetadata()
603 GenOpenCLArgMetadata(FD, Fn, CGM, Context, Builder, getContext()); in EmitOpenCLKernelMetadata()
605 if (const VecTypeHintAttr *A = FD->getAttr<VecTypeHintAttr>()) { in EmitOpenCLKernelMetadata()
620 if (const WorkGroupSizeHintAttr *A = FD->getAttr<WorkGroupSizeHintAttr>()) { in EmitOpenCLKernelMetadata()
628 if (const ReqdWorkGroupSizeAttr *A = FD->getAttr<ReqdWorkGroupSizeAttr>()) { in EmitOpenCLKernelMetadata()
640 if (auto *FD = dyn_cast_or_null<FunctionDecl>(F)) in endsWithReturn() local
[all …]
/external/protobuf/src/google/protobuf/
Ddescriptor_unittest.cc2045 typedef FieldDescriptor FD; // avoid ugly line wrapping in TEST_F() typedef
2047 EXPECT_STREQ("double" , GetTypeNameForFieldType(FD::TYPE_DOUBLE )); in TEST_F()
2048 EXPECT_STREQ("float" , GetTypeNameForFieldType(FD::TYPE_FLOAT )); in TEST_F()
2049 EXPECT_STREQ("int64" , GetTypeNameForFieldType(FD::TYPE_INT64 )); in TEST_F()
2050 EXPECT_STREQ("uint64" , GetTypeNameForFieldType(FD::TYPE_UINT64 )); in TEST_F()
2051 EXPECT_STREQ("int32" , GetTypeNameForFieldType(FD::TYPE_INT32 )); in TEST_F()
2052 EXPECT_STREQ("fixed64" , GetTypeNameForFieldType(FD::TYPE_FIXED64 )); in TEST_F()
2053 EXPECT_STREQ("fixed32" , GetTypeNameForFieldType(FD::TYPE_FIXED32 )); in TEST_F()
2054 EXPECT_STREQ("bool" , GetTypeNameForFieldType(FD::TYPE_BOOL )); in TEST_F()
2055 EXPECT_STREQ("string" , GetTypeNameForFieldType(FD::TYPE_STRING )); in TEST_F()
[all …]
Ddynamic_message.cc112 typedef FieldDescriptor FD; // avoid line wrapping in FieldSpaceUsed() typedef
113 if (field->label() == FD::LABEL_REPEATED) { in FieldSpaceUsed()
115 case FD::CPPTYPE_INT32 : return sizeof(RepeatedField<int32 >); in FieldSpaceUsed()
116 case FD::CPPTYPE_INT64 : return sizeof(RepeatedField<int64 >); in FieldSpaceUsed()
117 case FD::CPPTYPE_UINT32 : return sizeof(RepeatedField<uint32 >); in FieldSpaceUsed()
118 case FD::CPPTYPE_UINT64 : return sizeof(RepeatedField<uint64 >); in FieldSpaceUsed()
119 case FD::CPPTYPE_DOUBLE : return sizeof(RepeatedField<double >); in FieldSpaceUsed()
120 case FD::CPPTYPE_FLOAT : return sizeof(RepeatedField<float >); in FieldSpaceUsed()
121 case FD::CPPTYPE_BOOL : return sizeof(RepeatedField<bool >); in FieldSpaceUsed()
122 case FD::CPPTYPE_ENUM : return sizeof(RepeatedField<int >); in FieldSpaceUsed()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
DReplaceFileTest.cpp33 int FD = 0; in CreateFileWithContent() local
34 if (std::error_code ec = fs::openFileForWrite(FilePath, FD)) in CreateFileWithContent()
38 raw_fd_ostream OS(FD, ShouldClose); in CreateFileWithContent()
45 int FD; member in __anon7fa50a970111::ScopedFD
51 explicit ScopedFD(int Descriptor) : FD(Descriptor) {} in ScopedFD()
52 ~ScopedFD() { Process::SafelyCloseFileDescriptor(FD); } in ~ScopedFD()
55 bool FDHasContent(int FD, StringRef Content) { in FDHasContent() argument
56 auto Buffer = MemoryBuffer::getOpenFile(FD, "", -1); in FDHasContent()
62 int FD = 0; in FileHasContent() local
63 auto EC = fs::openFileForRead(File, FD); in FileHasContent()
[all …]
Draw_pwrite_stream_test.cpp54 int FD; in TEST() local
63 ASSERT_NO_ERROR(sys::fs::openFileForRead(Path, FD)); in TEST()
65 ASSERT_NO_ERROR(sys::fs::createTemporaryFile("foo", "bar", FD, Path)); in TEST()
70 raw_fd_ostream OS(FD, true); in TEST()
86 int FD; in TEST() local
87 sys::fs::openFileForWrite("/dev/null", FD, sys::fs::CD_OpenExisting); in TEST()
88 raw_fd_ostream OS(FD, true); in TEST()
/external/clang/lib/ARCMigrate/
DTransUnbridgedCasts.cpp136 if (FunctionDecl *FD = callE->getDirectCallee()) { in transformNonObjCToObjCCast() local
137 if (FD->hasAttr<CFReturnsRetainedAttr>()) { in transformNonObjCToObjCCast()
141 if (FD->hasAttr<CFReturnsNotRetainedAttr>()) { in transformNonObjCToObjCCast()
145 if (FD->isGlobal() && in transformNonObjCToObjCCast()
146 FD->getIdentifier() && in transformNonObjCToObjCCast()
148 FD->getIdentifier()->getName())) { in transformNonObjCToObjCCast()
149 StringRef fname = FD->getIdentifier()->getName(); in transformNonObjCToObjCCast()
156 if (FD->getName() == "CFRetain" && in transformNonObjCToObjCCast()
157 FD->getNumParams() == 1 && in transformNonObjCToObjCCast()
158 FD->getParent()->isTranslationUnit() && in transformNonObjCToObjCCast()
[all …]
/external/clang/lib/Sema/
DSemaCoroutine.cpp113 auto *FD = dyn_cast<FunctionDecl>(S.CurContext); in checkCoroutineContext() local
114 if (!FD) { in checkCoroutineContext()
118 } else if (isa<CXXConstructorDecl>(FD) || isa<CXXDestructorDecl>(FD)) { in checkCoroutineContext()
125 << isa<CXXDestructorDecl>(FD) << Keyword; in checkCoroutineContext()
126 } else if (FD->isConstexpr()) { in checkCoroutineContext()
128 } else if (FD->isVariadic()) { in checkCoroutineContext()
137 FD->getType()->isDependentType() in checkCoroutineContext()
139 : lookupPromiseType(S, FD->getType()->castAs<FunctionProtoType>(), in checkCoroutineContext()
146 VarDecl::Create(S.Context, FD, FD->getLocation(), FD->getLocation(), in checkCoroutineContext()
362 void Sema::CheckCompletedCoroutineBody(FunctionDecl *FD, Stmt *&Body) { in CheckCompletedCoroutineBody() argument
[all …]
/external/clang/lib/StaticAnalyzer/Core/
DCheckerContext.cpp46 bool CheckerContext::isCLibraryFunction(const FunctionDecl *FD, in isCLibraryFunction() argument
51 unsigned BId = FD->getBuiltinID(); in isCLibraryFunction()
55 StringRef BName = FD->getASTContext().BuiltinInfo.getName(BId); in isCLibraryFunction()
60 const IdentifierInfo *II = FD->getIdentifier(); in isCLibraryFunction()
68 if (!FD->getDeclContext()->getRedeclContext()->isTranslationUnit()) in isCLibraryFunction()
74 if (!FD->isInlined() && !FD->isExternallyVisible()) in isCLibraryFunction()
/external/swiftshader/third_party/LLVM/lib/Support/
Draw_ostream.cpp434 FD = STDOUT_FILENO; in raw_fd_ostream()
457 while ((FD = open(Filename, OpenFlags, 0664)) < 0) { in raw_fd_ostream()
472 : raw_ostream(unbuffered), FD(fd), in raw_fd_ostream()
482 off_t loc = ::lseek(FD, 0, SEEK_CUR); in raw_fd_ostream()
490 if (FD >= 0) { in ~raw_fd_ostream()
493 while (::close(FD) != 0) in ~raw_fd_ostream()
505 if (FD == 2) return; in ~raw_fd_ostream()
518 assert(FD >= 0 && "File already closed."); in write_impl()
526 ret = ::write(FD, Ptr, Size); in write_impl()
531 ret = ::writev(FD, &IOV, 1); in write_impl()
[all …]
/external/llvm/lib/CodeGen/
DGCMetadata.cpp114 GCFunctionInfo *FD = &getAnalysis<GCModuleInfo>().getFunctionInfo(F); in runOnFunction() local
116 OS << "GC roots for " << FD->getFunction().getName() << ":\n"; in runOnFunction()
117 for (GCFunctionInfo::roots_iterator RI = FD->roots_begin(), in runOnFunction()
118 RE = FD->roots_end(); in runOnFunction()
122 OS << "GC safe points for " << FD->getFunction().getName() << ":\n"; in runOnFunction()
123 for (GCFunctionInfo::iterator PI = FD->begin(), PE = FD->end(); PI != PE; in runOnFunction()
129 for (GCFunctionInfo::live_iterator RI = FD->live_begin(PI), in runOnFunction()
130 RE = FD->live_end(PI); in runOnFunction()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DGCMetadata.cpp120 GCFunctionInfo *FD = &getAnalysis<GCModuleInfo>().getFunctionInfo(F); in runOnFunction() local
122 OS << "GC roots for " << FD->getFunction().getName() << ":\n"; in runOnFunction()
123 for (GCFunctionInfo::roots_iterator RI = FD->roots_begin(), in runOnFunction()
124 RE = FD->roots_end(); in runOnFunction()
128 OS << "GC safe points for " << FD->getFunction().getName() << ":\n"; in runOnFunction()
129 for (GCFunctionInfo::iterator PI = FD->begin(), PE = FD->end(); PI != PE; in runOnFunction()
135 for (GCFunctionInfo::live_iterator RI = FD->live_begin(PI), in runOnFunction()
136 RE = FD->live_end(PI); in runOnFunction()
/external/llvm/unittests/Support/
Draw_pwrite_stream_test.cpp37 int FD; in TEST() local
38 sys::fs::createTemporaryFile("foo", "bar", FD, Path); in TEST()
39 raw_fd_ostream OS(FD, true); in TEST()
55 int FD; in TEST() local
56 sys::fs::openFileForWrite("/dev/null", FD, sys::fs::F_None); in TEST()
57 raw_fd_ostream OS(FD, true); in TEST()

12345678910>>...35