Home
last modified time | relevance | path

Searched refs:InputBuffer (Results 1 – 25 of 36) sorted by relevance

12

/external/llvm/unittests/Support/
DStreamingMemoryObjectTest.cpp58 uint8_t InputBuffer[] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07}; in TEST() local
60 reinterpret_cast<const char *>(InputBuffer), sizeof(InputBuffer)))); in TEST()
62 EXPECT_TRUE(std::equal(InputBuffer + 1, InputBuffer + 2, O.getPointer(1, 2))); in TEST()
63 EXPECT_TRUE(std::equal(InputBuffer + 3, InputBuffer + 7, O.getPointer(3, 4))); in TEST()
64 EXPECT_TRUE(std::equal(InputBuffer + 4, InputBuffer + 8, O.getPointer(4, 5))); in TEST()
65 EXPECT_TRUE(std::equal(InputBuffer, InputBuffer + 8, O.getPointer(0, 20))); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DCompression.cpp60 Error zlib::compress(StringRef InputBuffer, in compress() argument
63 unsigned long CompressedSize = ::compressBound(InputBuffer.size()); in compress()
67 (const Bytef *)InputBuffer.data(), InputBuffer.size(), in compress()
76 Error zlib::uncompress(StringRef InputBuffer, char *UncompressedBuffer, in uncompress() argument
80 (const Bytef *)InputBuffer.data(), InputBuffer.size()); in uncompress()
87 Error zlib::uncompress(StringRef InputBuffer, in uncompress() argument
92 uncompress(InputBuffer, UncompressedBuffer.data(), UncompressedSize); in uncompress()
103 Error zlib::compress(StringRef InputBuffer, in compress() argument
108 Error zlib::uncompress(StringRef InputBuffer, char *UncompressedBuffer, in uncompress() argument
112 Error zlib::uncompress(StringRef InputBuffer, in uncompress() argument
DYAMLParser.cpp516 MemoryBufferRef InputBuffer; member in llvm::yaml::Scanner
770 InputBuffer = Buffer; in init()
771 Current = InputBuffer.getBufferStart(); in init()
772 End = InputBuffer.getBufferEnd(); in init()
1767 Stream::Stream(MemoryBufferRef InputBuffer, SourceMgr &SM, bool ShowColors, in Stream() argument
1769 : scanner(new Scanner(InputBuffer, SM, ShowColors, EC)), CurrentDoc() {} in Stream()
/external/tensorflow/tensorflow/core/lib/io/
Dinputbuffer.cc23 InputBuffer::InputBuffer(RandomAccessFile* file, size_t buffer_bytes) in InputBuffer() function in tensorflow::io::InputBuffer
31 InputBuffer::~InputBuffer() { delete[] buf_; } in ~InputBuffer()
33 Status InputBuffer::FillBuffer() { in FillBuffer()
45 Status InputBuffer::ReadLine(string* result) { in ReadLine()
74 Status InputBuffer::ReadNBytes(int64 bytes_to_read, string* result) { in ReadNBytes()
87 Status InputBuffer::ReadNBytes(int64 bytes_to_read, char* result, in ReadNBytes()
118 Status InputBuffer::ReadVarint32Fallback(uint32* result) { in ReadVarint32Fallback()
126 Status InputBuffer::ReadVarint64Fallback(uint64* result) { in ReadVarint64Fallback()
135 Status InputBuffer::ReadVarintFallback(T* result, int max_bytes) { in ReadVarintFallback()
150 Status InputBuffer::SkipNBytes(int64 bytes_to_skip) { in SkipNBytes()
[all …]
Dinputbuffer_test.cc38 TEST(InputBuffer, ReadLine_Empty) { in TEST() argument
47 io::InputBuffer in(file.get(), buf_size); in TEST()
52 TEST(InputBuffer, ReadLine1) { in TEST() argument
62 io::InputBuffer in(file.get(), buf_size); in TEST()
75 TEST(InputBuffer, ReadLine_NoTrailingNewLine) { in TEST() argument
84 io::InputBuffer in(file.get(), buf_size); in TEST()
97 TEST(InputBuffer, ReadLine_EmptyLines) { in TEST() argument
107 io::InputBuffer in(file.get(), buf_size); in TEST()
124 TEST(InputBuffer, ReadLine_CRLF) { in TEST() argument
134 io::InputBuffer in(file.get(), buf_size); in TEST()
[all …]
Dinputbuffer.h32 class InputBuffer {
36 InputBuffer(RandomAccessFile* file, size_t buffer_bytes);
37 ~InputBuffer();
105 TF_DISALLOW_COPY_AND_ASSIGN(InputBuffer);
111 inline Status InputBuffer::ReadVarint32(uint32* result) { in ReadVarint32()
125 inline Status InputBuffer::ReadVarint64(uint64* result) { in ReadVarint64()
/external/llvm/lib/Support/
DCompression.cpp49 zlib::Status zlib::compress(StringRef InputBuffer, in compress() argument
52 unsigned long CompressedSize = ::compressBound(InputBuffer.size()); in compress()
57 (const Bytef *)InputBuffer.data(), InputBuffer.size(), CLevel)); in compress()
65 zlib::Status zlib::uncompress(StringRef InputBuffer, in uncompress() argument
71 (const Bytef *)InputBuffer.data(), InputBuffer.size())); in uncompress()
85 zlib::Status zlib::compress(StringRef InputBuffer, in compress() argument
90 zlib::Status zlib::uncompress(StringRef InputBuffer, in uncompress() argument
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldImpl.h73 virtual bool loadObject(MemoryBuffer *InputBuffer) = 0;
94 virtual bool isCompatibleFormat(const MemoryBuffer *InputBuffer) const = 0;
138 bool loadObject(MemoryBuffer *InputBuffer);
142 static bool isKnownFormat(const MemoryBuffer *InputBuffer);
144 bool isCompatibleFormat(const MemoryBuffer *InputBuffer) const { in isCompatibleFormat() argument
145 return isKnownFormat(InputBuffer); in isCompatibleFormat()
DRuntimeDyld.cpp65 bool RuntimeDyld::loadObject(MemoryBuffer *InputBuffer) { in loadObject() argument
67 if (RuntimeDyldMachO::isKnownFormat(InputBuffer)) in loadObject()
72 if(!Dyld->isCompatibleFormat(InputBuffer)) in loadObject()
76 return Dyld->loadObject(InputBuffer); in loadObject()
DRuntimeDyldMachO.cpp403 bool RuntimeDyldMachO::loadObject(MemoryBuffer *InputBuffer) { in loadObject() argument
410 MachOObject::LoadFromBuffer(InputBuffer, &ErrorStr)); in loadObject()
515 bool RuntimeDyldMachO::isKnownFormat(const MemoryBuffer *InputBuffer) { in isKnownFormat() argument
516 StringRef Magic = InputBuffer->getBuffer().slice(0, 4); in isKnownFormat()
/external/tensorflow/tensorflow/core/kernels/
Dunary_ops_composition.cc36 using InputBuffer = typename TTypes<T>::ConstFlat; typedef
39 using ComputeFn = void (*)(const InputBuffer&, OutputBuffer*);
88 using InputBuffer = typename Support::InputBuffer; typedef in tensorflow::UnaryOpsComposition
113 InputBuffer in_flat = in.flat<T>(); in Compute()
120 const InputBuffer in_slice(in_flat.data() + begin, len); in Compute()
121 const InputBuffer scratch_slice(out_flat.data() + begin, len); in Compute()
163 static inline void Compute##name(const InputBuffer& in, OutputBuffer* out) { \
175 static inline void ComputeRelu(const InputBuffer& in, OutputBuffer* out) { \
184 static inline void ComputeRelu6(const InputBuffer& in, OutputBuffer* out) { \
193 static inline void ComputeElu(const InputBuffer& in, OutputBuffer* out) { \
[all …]
Dtext_line_reader_op.cc40 input_buffer_.reset(new io::InputBuffer(file_.get(), kBufferSize)); in OnWorkStartedLocked()
92 std::unique_ptr<io::InputBuffer> input_buffer_;
Dlookup_util.cc36 io::InputBuffer input_buffer(file.get(), kInputBufferSize); in GetNumLinesInTextFile()
90 input_buffer_.reset(new io::InputBuffer(file_.get(), kInputBufferSize)); in Init()
191 std::unique_ptr<io::InputBuffer> input_buffer_;
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DCompression.h35 Error compress(StringRef InputBuffer, SmallVectorImpl<char> &CompressedBuffer,
38 Error uncompress(StringRef InputBuffer, char *UncompressedBuffer,
41 Error uncompress(StringRef InputBuffer,
/external/swiftshader/third_party/LLVM/tools/llvm-rtdyld/
Dllvm-rtdyld.cpp95 OwningPtr<MemoryBuffer> InputBuffer; in executeInput() local
97 InputBuffer)) in executeInput()
101 if (Dyld.loadObject(InputBuffer.take())) { in executeInput()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-rtdyld/
Dllvm-rtdyld.cpp296 ErrorOr<std::unique_ptr<MemoryBuffer>> InputBuffer = in printLineInfoForInput() local
298 if (std::error_code EC = InputBuffer.getError()) in printLineInfoForInput()
302 ObjectFile::createObjectFile((*InputBuffer)->getMemBufferRef())); in printLineInfoForInput()
426 ErrorOr<std::unique_ptr<MemoryBuffer>> InputBuffer = in executeInput() local
428 if (std::error_code EC = InputBuffer.getError()) in executeInput()
431 ObjectFile::createObjectFile((*InputBuffer)->getMemBufferRef())); in executeInput()
692 ErrorOr<std::unique_ptr<MemoryBuffer>> InputBuffer = in linkAndVerify() local
695 if (std::error_code EC = InputBuffer.getError()) in linkAndVerify()
699 ObjectFile::createObjectFile((*InputBuffer)->getMemBufferRef())); in linkAndVerify()
/external/llvm/tools/llvm-rtdyld/
Dllvm-rtdyld.cpp290 ErrorOr<std::unique_ptr<MemoryBuffer>> InputBuffer = in printLineInfoForInput() local
292 if (std::error_code EC = InputBuffer.getError()) in printLineInfoForInput()
296 ObjectFile::createObjectFile((*InputBuffer)->getMemBufferRef())); in printLineInfoForInput()
420 ErrorOr<std::unique_ptr<MemoryBuffer>> InputBuffer = in executeInput() local
422 if (std::error_code EC = InputBuffer.getError()) in executeInput()
425 ObjectFile::createObjectFile((*InputBuffer)->getMemBufferRef())); in executeInput()
687 ErrorOr<std::unique_ptr<MemoryBuffer>> InputBuffer = in linkAndVerify() local
690 if (std::error_code EC = InputBuffer.getError()) in linkAndVerify()
694 ObjectFile::createObjectFile((*InputBuffer)->getMemBufferRef())); in linkAndVerify()
/external/llvm/include/llvm/Support/
DCompression.h43 Status compress(StringRef InputBuffer, SmallVectorImpl<char> &CompressedBuffer,
46 Status uncompress(StringRef InputBuffer,
/external/pdfium/third_party/lcms/src/
Dcmsxform.c176 const void* InputBuffer, in cmsDoTransform() argument
189 p -> xform(p, InputBuffer, OutputBuffer, Size, 1, &stride); in cmsDoTransform()
195 const void* InputBuffer, in cmsDoTransformStride() argument
208 p -> xform(p, InputBuffer, OutputBuffer, Size, 1, &stride); in cmsDoTransformStride()
213 const void* InputBuffer, in cmsDoTransformLineStride() argument
231 p->xform(p, InputBuffer, OutputBuffer, PixelsPerLine, LineCount, &stride); in cmsDoTransformLineStride()
654 const void* InputBuffer, in _cmsTransform2toTransformAdaptor() argument
663 … _cmsHandleExtraChannels(CMMcargo, InputBuffer, OutputBuffer, PixelsPerLine, LineCount, Stride); in _cmsTransform2toTransformAdaptor()
670 void *accum = (cmsUInt8Number*)InputBuffer + strideIn; in _cmsTransform2toTransformAdaptor()
/external/tensorflow/tensorflow/python/framework/
Dpython_op_gen_main.cc42 std::unique_ptr<io::InputBuffer> input_buffer( in ReadOpListFromFile()
43 new io::InputBuffer(file.get(), 256 << 10)); in ReadOpListFromFile()
/external/swiftshader/third_party/LLVM/tools/macho-dump/
Dmacho-dump.cpp378 OwningPtr<MemoryBuffer> InputBuffer; in main() local
379 if (error_code ec = MemoryBuffer::getFileOrSTDIN(InputFile, InputBuffer)) in main()
384 MachOObject::LoadFromBuffer(InputBuffer.take(), &ErrorStr)); in main()
/external/swiftshader/third_party/LLVM/include/llvm/ExecutionEngine/
DRuntimeDyld.h61 bool loadObject(MemoryBuffer *InputBuffer);
/external/clang/include/clang/Lex/
DLexer.h103 Lexer(FileID FID, const llvm::MemoryBuffer *InputBuffer, Preprocessor &PP);
114 Lexer(FileID FID, const llvm::MemoryBuffer *InputBuffer,
/external/tensorflow/tensorflow/core/util/tensor_bundle/
Dtensor_bundle.h293 std::unordered_map<int32, io::InputBuffer*> data_;
Dtensor_bundle.cc69 Status ReadStringTensor(io::InputBuffer* buffered_file, size_t num_elements, in ReadStringTensor()
128 Status ReadVariantTensor(io::InputBuffer* buffered_file, Tensor* ret, in ReadVariantTensor()
826 io::InputBuffer* buffered_file = data_[entry.shard_id()]; in GetValue()
831 buffered_file = new io::InputBuffer(file.release(), kBufferSize); in GetValue()

12