Home
last modified time | relevance | path

Searched refs:write (Results 1 – 25 of 2732) sorted by relevance

12345678910>>...110

/openbsd-src/gnu/llvm/llvm/lib/BinaryFormat/
H A DMsgPackWriter.cpp25 void Writer::writeNil() { EW.write(FirstByte::Nil); } in writeNil()
27 void Writer::write(bool b) { EW.write(b ? FirstByte::True : FirstByte::False); } in write() function in Writer
29 void Writer::write(int64_t i) { in write() function in Writer
31 write(static_cast<uint64_t>(i)); in write()
36 EW.write(static_cast<int8_t>(i)); in write()
41 EW.write(FirstByte::Int8); in write()
42 EW.write(static_cast<int8_t>(i)); in write()
47 EW.write(FirstByte::Int16); in write()
48 EW.write(static_cast<int16_t>(i)); in write()
53 EW.write(FirstByte::Int32); in write()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/ObjectYAML/
H A DXCOFFEmitter.cpp90 W.write(NameRef); in writeName()
354 W.write<uint16_t>(Obj.Header.Magic ? Obj.Header.Magic : InitFileHdr.Magic); in writeFileHeader()
355 W.write<uint16_t>(Obj.Header.NumberOfSections ? Obj.Header.NumberOfSections in writeFileHeader()
357 W.write<int32_t>(Obj.Header.TimeStamp); in writeFileHeader()
359 W.write<uint64_t>(Obj.Header.SymbolTableOffset in writeFileHeader()
362 W.write<uint16_t>(InitFileHdr.AuxHeaderSize); in writeFileHeader()
363 W.write<uint16_t>(Obj.Header.Flags); in writeFileHeader()
364 W.write<int32_t>(Obj.Header.NumberOfSymTableEntries in writeFileHeader()
368 W.write<uint32_t>(Obj.Header.SymbolTableOffset in writeFileHeader()
371 W.write<int32_t>(Obj.Header.NumberOfSymTableEntries in writeFileHeader()
[all …]
/openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/MCJIT/complete/
H A Dsplit-lib.py10 self.shfile.write("echo \"\" > %s\n" % self.timeFile)
17 self.shfile.write("echo \"%s: Calls %s\" >> %s\n" % (callname, irname, self.timeFile))
18 self.shfile.write("echo \"\" >> %s\n" % self.timeFile)
19 self.shfile.write("echo \"With MCJIT\" >> %s\n" % self.timeFile)
20 …self.shfile.write("/usr/bin/time -f \"Command %C\\n\\tuser time: %U s\\n\\tsytem time: %S s\\n\\tm…
21 self.shfile.write(" -o %s -a " % self.timeFile)
22 …self.shfile.write("./toy -suppress-prompts -use-mcjit=true -enable-lazy-compilation=true -use-obje…
23 self.shfile.write("echo \"\" >> %s\n" % self.timeFile)
24 self.shfile.write("echo \"With MCJIT again\" >> %s\n" % self.timeFile)
25 …self.shfile.write("/usr/bin/time -f \"Command %C\\n\\tuser time: %U s\\n\\tsytem time: %S s\\n\\tm…
[all …]
H A Dgenk-timing.py13 self.shfile.write("echo \"\" > %s\n" % self.timeFile)
20 …self.shfile.write("echo \"%s: Calls %d of %d functions, %d total\" >> %s\n" % (filename, funcsCall…
21 self.shfile.write("echo \"\" >> %s\n" % self.timeFile)
22 self.shfile.write("echo \"With MCJIT (original)\" >> %s\n" % self.timeFile)
23 …self.shfile.write("/usr/bin/time -f \"Command %C\\n\\tuser time: %U s\\n\\tsytem time: %S s\\n\\tm…
24 self.shfile.write(" -o %s -a " % self.timeFile)
25 …self.shfile.write("./toy -suppress-prompts -use-mcjit=true -enable-lazy-compilation=false < %s > %…
26 self.shfile.write("echo \"\" >> %s\n" % self.timeFile)
27 self.shfile.write("echo \"With MCJIT (lazy)\" >> %s\n" % self.timeFile)
28 …self.shfile.write("/usr/bin/time -f \"Command %C\\n\\tuser time: %U s\\n\\tsytem time: %S s\\n\\tm…
[all …]
/openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/MCJIT/cached/
H A Dsplit-lib.py10 self.shfile.write("echo \"\" > %s\n" % self.timeFile)
17 self.shfile.write("echo \"%s: Calls %s\" >> %s\n" % (callname, irname, self.timeFile))
18 self.shfile.write("echo \"\" >> %s\n" % self.timeFile)
19 self.shfile.write("echo \"With MCJIT\" >> %s\n" % self.timeFile)
20 …self.shfile.write("/usr/bin/time -f \"Command %C\\n\\tuser time: %U s\\n\\tsytem time: %S s\\n\\tm…
21 self.shfile.write(" -o %s -a " % self.timeFile)
22 …self.shfile.write("./toy-mcjit -use-object-cache -input-IR=%s < %s > %s-mcjit.out 2> %s-mcjit.err\…
23 self.shfile.write("echo \"\" >> %s\n" % self.timeFile)
24 self.shfile.write("echo \"With MCJIT again\" >> %s\n" % self.timeFile)
25 …self.shfile.write("/usr/bin/time -f \"Command %C\\n\\tuser time: %U s\\n\\tsytem time: %S s\\n\\tm…
[all …]
H A Dgenk-timing.py13 self.shfile.write("echo \"\" > %s\n" % self.timeFile)
20 …self.shfile.write("echo \"%s: Calls %d of %d functions, %d total\" >> %s\n" % (filename, funcsCall…
21 self.shfile.write("echo \"\" >> %s\n" % self.timeFile)
22 self.shfile.write("echo \"With MCJIT\" >> %s\n" % self.timeFile)
23 …self.shfile.write("/usr/bin/time -f \"Command %C\\n\\tuser time: %U s\\n\\tsytem time: %S s\\n\\tm…
24 self.shfile.write(" -o %s -a " % self.timeFile)
25 …self.shfile.write("./toy-mcjit < %s > %s-mcjit.out 2> %s-mcjit.err\n" % (filename, rootname, rootn…
26 self.shfile.write("echo \"\" >> %s\n" % self.timeFile)
27 self.shfile.write("echo \"With JIT\" >> %s\n" % self.timeFile)
28 …self.shfile.write("/usr/bin/time -f \"Command %C\\n\\tuser time: %U s\\n\\tsytem time: %S s\\n\\tm…
[all …]
/openbsd-src/gnu/llvm/compiler-rt/lib/tsan/benchmarks/
H A Dmop.cpp15 template<typename T, bool write>
30 if (write) { in thread()
46 template<typename T, bool write>
49 pthread_create(&th, 0, thread<T, write>, (void*)1); in test()
50 thread<T, write>(0); in test()
54 template<bool write>
57 case 1: return test<char, write>(); in testw()
58 case 2: return test<short, write>(); in testw()
59 case 4: return test<int, write>(); in testw()
60 case 8: return test<long long, write>(); in testw()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/MC/
H A DMachObjectWriter.cpp150 W.write<uint32_t>(is64Bit() ? MachO::MH_MAGIC_64 : MachO::MH_MAGIC); in writeHeader()
152 W.write<uint32_t>(TargetObjectWriter->getCPUType()); in writeHeader()
153 W.write<uint32_t>(TargetObjectWriter->getCPUSubtype()); in writeHeader()
155 W.write<uint32_t>(Type); in writeHeader()
156 W.write<uint32_t>(NumLoadCommands); in writeHeader()
157 W.write<uint32_t>(LoadCommandsSize); in writeHeader()
158 W.write<uint32_t>(Flags); in writeHeader()
160 W.write<uint32_t>(0); // reserved in writeHeader()
189 W.write<uint32_t>(is64Bit() ? MachO::LC_SEGMENT_64 : MachO::LC_SEGMENT); in writeSegmentLoadCommand()
190 W.write<uint32_t>(SegmentLoadCommandSize + in writeSegmentLoadCommand()
[all …]
H A DXCOFFObjectWriter.cpp381 is64Bit() ? W.write<uint64_t>(Word) : W.write<uint32_t>(Word); in writeWord()
740 Strings.write(W.OS); in writeObject()
752 W.write<int32_t>(0); in writeSymbolName()
753 W.write<uint32_t>(Strings.getOffset(SymbolName)); in writeSymbolName()
758 W.write(NameRef); in writeSymbolName()
768 W.write<uint64_t>(Value); in writeSymbolEntry()
769 W.write<uint32_t>(Strings.getOffset(SymbolName)); in writeSymbolEntry()
772 W.write<uint32_t>(Value); in writeSymbolEntry()
774 W.write<int16_t>(SectionNumber); in writeSymbolEntry()
775 W.write<uint16_t>(SymbolType); in writeSymbolEntry()
[all …]
H A DWinCOFFObjectWriter.cpp476 W.write<uint16_t>(COFF::IMAGE_FILE_MACHINE_UNKNOWN); in WriteFileHeader()
477 W.write<uint16_t>(0xFFFF); in WriteFileHeader()
478 W.write<uint16_t>(COFF::BigObjHeader::MinBigObjectVersion); in WriteFileHeader()
479 W.write<uint16_t>(Header.Machine); in WriteFileHeader()
480 W.write<uint32_t>(Header.TimeDateStamp); in WriteFileHeader()
481 W.OS.write(COFF::BigObjMagic, sizeof(COFF::BigObjMagic)); in WriteFileHeader()
482 W.write<uint32_t>(0); in WriteFileHeader()
483 W.write<uint32_t>(0); in WriteFileHeader()
484 W.write<uint32_t>(0); in WriteFileHeader()
485 W.write<uint32_t>(0); in WriteFileHeader()
[all …]
H A DELFObjectWriter.cpp89 template <typename T> void write(T Value);
159 W.write<uint64_t>(Word); in WriteWord()
161 W.write<uint32_t>(Word); in WriteWord()
164 template <typename T> void write(T Val) { in write() function
165 W.write(Val); in write()
342 template <typename T> void SymbolTableWriter::write(T Value) { in write() function in SymbolTableWriter
343 EWriter.write(Value); in write()
367 write(name); // st_name in writeSymbol()
368 write(info); // st_info in writeSymbol()
369 write(other); // st_other in writeSymbol()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/Support/
H A DEndianStream.h28 inline void write(raw_ostream &os, value_type value, endianness endian) { in write() function
30 os.write((const char *)&value, sizeof(value_type)); in write()
34 inline void write<float>(raw_ostream &os, float value, endianness endian) {
35 write(os, FloatToBits(value), endian);
39 inline void write<double>(raw_ostream &os, double value,
41 write(os, DoubleToBits(value), endian);
45 inline void write(raw_ostream &os, ArrayRef<value_type> vals, in write() function
48 write(os, v, endian); in write()
56 template <typename value_type> void write(ArrayRef<value_type> Val) { in write() function
57 endian::write(OS, Val, Endian); in write()
[all …]
/openbsd-src/gnu/usr.bin/perl/cpan/IO-Compress/t/
H A D006zip.t84 is $zip->write($content[0]), length($content[0]), "write";
86 is $zip->write($content[1]), length($content[1]), "write";
88 is $zip->write($content[2]), length($content[2]), "write";
117 is $zip->write($content[0]), length($content[0]), "write";
119 is $zip->write($content[1]), length($content[1]), "write";
[all...]
/openbsd-src/gnu/llvm/llvm/utils/lit/tests/Inputs/shtest-shell/
H A Dredirects.txt3 # RUN: echo "not-present" > %t.stdout-write
4 # RUN: echo "is-present" > %t.stdout-write
5 # RUN: FileCheck --check-prefix=STDOUT-WRITE < %t.stdout-write %s
10 # RUN: echo "appended-line" >> %t.stdout-write
11 # RUN: FileCheck --check-prefix=STDOUT-APPEND < %t.stdout-write %s
19 # RUN: echo "not-present" > %t.stderr-write
20 # RUN: %{python} %S/write-to-stderr.py 2> %t.stderr-write
21 # RUN: FileCheck --check-prefix=STDERR-WRITE < %t.stderr-write %s
26 # RUN: %{python} %S/write-to-stderr.py 2>> %t.stderr-write
27 # RUN: FileCheck --check-prefix=STDERR-APPEND < %t.stderr-write %s
[all …]
H A Dvalid-shell.txt4 # RUN: rm -f %t.write
5 # RUN: %{python} %S/check_path.py file %t.write > %t.out
7 # RUN: echo "create a temp file" > %t.write
8 # RUN: %{python} %S/check_path.py file %t.write > %t.out
10 # RUN: rm -f %t.write
11 # RUN: %{python} %S/check_path.py file %t.write > %t.out
58 # RUN: echo "create a temp file" > %T/test/temp.write
59 # RUN: echo "create a temp1 file" > %T/test/test1/temp1.write
60 # RUN: echo "create a temp2 file" > %T/test/test2/temp2.write
61 …N: %{python} %S/check_path.py file %T/test/temp.write %T/test/test1/temp1.write %T/test/test2/temp…
[all …]
/openbsd-src/gnu/llvm/llvm/lib/XRay/
H A DFDRTraceWriter.cpp26 static size_t write(support::endian::Writer &OS, Tuple &&T) { in write() function
27 OS.write(std::get<Index>(T)); in write()
28 return sizeof(std::get<Index>(T)) + IndexedWriter<Index + 1>::write(OS, T); in write()
36 static size_t write(support::endian::Writer &OS, Tuple &&) { in write() function
48 OS.write(FirstByte); in writeMetadata()
49 auto Bytes = IndexedWriter<0>::write(OS, T); in writeMetadata()
53 OS.write('\0'); in writeMetadata()
68 OS.write(H.Version); in FDRTraceWriter()
69 OS.write(H.Type); in FDRTraceWriter()
70 OS.write(BitField); in FDRTraceWriter()
[all …]
/openbsd-src/gnu/usr.bin/perl/t/op/
H A Dwrite.t43 write $glob;
55 write $glob;
65 write $glob;
156 write(OUT);
192 write(OUT2);
232 write(OUT2);
297 write(OUT3);
316 write LEX;
318 write LEX;
329 write (OUT4);
[all …]
/openbsd-src/games/backgammon/common_source/
H A Dsave.c113 write(fdesc, board, sizeof(board)); in save()
114 write(fdesc, off, sizeof(off)); in save()
115 write(fdesc, in, sizeof(in)); in save()
116 write(fdesc, dice, sizeof(dice)); in save()
117 write(fdesc, &cturn, sizeof(cturn)); in save()
118 write(fdesc, &dflag, sizeof(dflag)); in save()
119 write(fdesc, &dlast, sizeof(dlast)); in save()
120 write(fdesc, &pnum, sizeof(pnum)); in save()
121 write(fdesc, &rscore, sizeof(rscore)); in save()
122 write(fdesc, &wscore, sizeof(wscore)); in save()
[all …]
/openbsd-src/gnu/llvm/llvm/utils/lit/lit/builtin_commands/
H A Dcat.py15 newdata.write(chr(intval))
19 newdata.write("M-")
21 newdata.write("^")
22 newdata.write(chr(intval+64))
24 newdata.write("^?")
26 newdata.write(chr(intval))
40 sys.stderr.write("Unsupported: 'cat': %s\n" % str(err))
59 writer.write(contents)
63 sys.stderr.write(str(error))
/openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/scripts/
H A Dsancov.py17 sys.stderr.write(
75 sys.stderr.write(
83 sys.stderr.write(
93 sys.stderr.write("%s: 1 file merged; %d PCs total\n" % (prog_name, len(s)))
107 stdout_buf.write(a)
112 sys.stderr.write("%s: unpacking %s\n" % (prog_name, path))
124 sys.stderr.write("%s: extracting %s\n" % (prog_name, extracted_file))
128 f2.write(blob)
140 sys.stderr.write("%s: reading map %s\n" % (prog_name, map_path))
154 sys.stderr.write("%s: unpacking %s\n" % (prog_name, path))
[all …]
/openbsd-src/gnu/llvm/llvm/tools/llvm-xray/
H A Dxray-converter.cpp109 Writer.write(FH.Version); in exportAsRAWv1()
110 Writer.write(FH.Type); in exportAsRAWv1()
116 Writer.write(Bitfield); in exportAsRAWv1()
117 Writer.write(FH.CycleFrequency); in exportAsRAWv1()
121 Writer.write(Padding4B); in exportAsRAWv1()
122 Writer.write(Padding4B); in exportAsRAWv1()
123 Writer.write(Padding4B); in exportAsRAWv1()
124 Writer.write(Padding4B); in exportAsRAWv1()
132 Writer.write(R.RecordType); in exportAsRAWv1()
133 Writer.write(static_cast<uint8_t>(R.CPU)); in exportAsRAWv1()
[all …]
/openbsd-src/gnu/llvm/compiler-rt/lib/profile/
H A DInstrProfilingPlatformWindows.c29 #pragma section(".lprfd$A", read, write)
30 #pragma section(".lprfd$Z", read, write)
31 #pragma section(".lprfc$A", read, write)
32 #pragma section(".lprfc$Z", read, write)
33 #pragma section(".lorderfile$A", read, write)
34 #pragma section(".lprfnd$A", read, write)
35 #pragma section(".lprfnd$Z", read, write)
/openbsd-src/gnu/llvm/lldb/examples/summaries/cocoa/
H A DLogger.py11 def write(self, data): member in NopLogger
26 def write(self, data): member in StdoutLogger
49 def write(self, data): member in FileLogger
113 self.write('Logging from function ' + str(caller))
115 self.write(
120 def write(self, data): member in Logger
121 self.impl.write(data)
126 self.write(data)
/openbsd-src/gnu/llvm/llvm/include/llvm/BinaryFormat/
H A DMsgPackWriter.h64 void write(bool b);
71 void write(int64_t i);
76 void write(uint64_t u);
81 void write(double d);
86 void write(StringRef s);
93 void write(MemoryBufferRef Buffer);
/openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/MCJIT/lazy/
H A Dgenk-timing.py13 self.shfile.write("echo \"\" > %s\n" % self.timeFile)
20 …self.shfile.write("echo \"%s: Calls %d of %d functions, %d total\" >> %s\n" % (filename, funcsCall…
21 self.shfile.write("echo \"\" >> %s\n" % self.timeFile)
22 self.shfile.write("echo \"With MCJIT\" >> %s\n" % self.timeFile)
23 …self.shfile.write("/usr/bin/time -f \"Command %C\\n\\tuser time: %U s\\n\\tsytem time: %S s\\n\\tm…
24 self.shfile.write(" -o %s -a " % self.timeFile)
25 …self.shfile.write("./toy-mcjit < %s > %s-mcjit.out 2> %s-mcjit.err\n" % (filename, rootname, rootn…
26 self.shfile.write("echo \"\" >> %s\n" % self.timeFile)
27 self.shfile.write("echo \"With JIT\" >> %s\n" % self.timeFile)
28 …self.shfile.write("/usr/bin/time -f \"Command %C\\n\\tuser time: %U s\\n\\tsytem time: %S s\\n\\tm…
[all …]

12345678910>>...110