Displaying 20 results from an estimated 723 matches for "raw_ostream".
2016 Mar 25
2
Link error on Linux
...LLVMRuntimeDyld
-lLLVMObject -lLLVMMCParser -lLLVMBitReader -lLLVMMC -lLLVMCore
-lLLVMSupport -ldl -lpthread -ltinfo -o aklo
aklo-aklo.o
aklo-aklo.o: In function `operator()':
/mnt/a2/aklo.cpp:442: undefined reference to `llvm::outs()'
aklo-aklo.o: In function `llvm::raw_ostream::operator<<(llvm::StringRef)':
/home/a/llvm/include/llvm/Support/raw_ostream.h:166: undefined reference to
`llvm::raw_ostream::write(char const*, unsigned long)'
aklo-aklo.o: In function `operator()':
/mnt/a2/aklo.cpp:443: undefined reference to `llvm::outs()'
/mnt/a2/aklo.cpp...
2016 Mar 25
3
Link error on Linux
...ader -lLLVMMC -lLLVMCore
> > -lLLVMSupport -ldl -lpthread -ltinfo -o aklo
> > aklo-aklo.o
> > aklo-aklo.o: In function `operator()':
> > /mnt/a2/aklo.cpp:442: undefined reference to `llvm::outs()'
> > aklo-aklo.o: In function
> `llvm::raw_ostream::operator<<(llvm::StringRef)':
> > /home/a/llvm/include/llvm/Support/raw_ostream.h:166: undefined reference
> to
> > `llvm::raw_ostream::write(char const*, unsigned long)'
> > aklo-aklo.o: In function `operator()':
> > /mnt/a2/aklo.cpp:443: undefined ref...
2018 Nov 03
2
llvm bug 36466 fix
..., bool) const: Assertion `I
!= M+Size && I->FromReg == RegNum && "Invalid RegNum"' failed.
Stack dump:
0. Program arguments: /home/linux/llvm-7/llvm/build/bin/llvm-dwarfdump
-debug-info C++/483.xalancbmk.O1
#0 0x000000000093ab37 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
/home/linux/llvm-7/llvm/lib/Support/Unix/Signals.inc:490:0
#1 0x000000000093abca PrintStackTraceSignalHandler(void*)
/home/linux/llvm-7/llvm/lib/Support/Unix/Signals.inc:554:0
#2 0x00000000009388d8 llvm::sys::RunSignalHandlers()
/home/linux/llvm-7/llvm/lib/Support/Signals.cpp:67:0
#3 0x000000...
2016 Mar 25
0
Link error on Linux
...ect -lLLVMMCParser -lLLVMBitReader -lLLVMMC -lLLVMCore
> -lLLVMSupport -ldl -lpthread -ltinfo -o aklo
> aklo-aklo.o
> aklo-aklo.o: In function `operator()':
> /mnt/a2/aklo.cpp:442: undefined reference to `llvm::outs()'
> aklo-aklo.o: In function `llvm::raw_ostream::operator<<(llvm::StringRef)':
> /home/a/llvm/include/llvm/Support/raw_ostream.h:166: undefined reference to
> `llvm::raw_ostream::write(char const*, unsigned long)'
> aklo-aklo.o: In function `operator()':
> /mnt/a2/aklo.cpp:443: undefined reference to `llvm::outs()...
2016 Mar 25
2
Link error on Linux
...>> > -lLLVMSupport -ldl -lpthread -ltinfo -o aklo
>> > aklo-aklo.o
>> > aklo-aklo.o: In function `operator()':
>> > /mnt/a2/aklo.cpp:442: undefined reference to `llvm::outs()'
>> > aklo-aklo.o: In function
>> `llvm::raw_ostream::operator<<(llvm::StringRef)':
>> > /home/a/llvm/include/llvm/Support/raw_ostream.h:166: undefined
>> reference to
>> > `llvm::raw_ostream::write(char const*, unsigned long)'
>> > aklo-aklo.o: In function `operator()':
>> > /mnt/a2/aklo.cp...
2016 Mar 25
0
Link error on Linux
...BitReader -lLLVMMC -lLLVMCore
> > -lLLVMSupport -ldl -lpthread -ltinfo -o aklo
> > aklo-aklo.o
> > aklo-aklo.o: In function `operator()':
> > /mnt/a2/aklo.cpp:442: undefined reference to `llvm::outs()'
> > aklo-aklo.o: In function `llvm::raw_ostream::operator<<(llvm::StringRef)':
> > /home/a/llvm/include/llvm/Support/raw_ostream.h:166: undefined reference to
> > `llvm::raw_ostream::write(char const*, unsigned long)'
> > aklo-aklo.o: In function `operator()':
> > /mnt/a2/aklo.cpp:443: undefined referenc...
2018 Nov 03
2
llvm bug 36466 fix
...mp; I->FromReg == RegNum && "Invalid RegNum"' failed.
>> Stack dump:
>> 0. Program arguments:
>> /home/linux/llvm-7/llvm/build/bin/llvm-dwarfdump -debug-info
>> C++/483.xalancbmk.O1
>> #0 0x000000000093ab37 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
>> /home/linux/llvm-7/llvm/lib/Support/Unix/Signals.inc:490:0
>> #1 0x000000000093abca PrintStackTraceSignalHandler(void*)
>> /home/linux/llvm-7/llvm/lib/Support/Unix/Signals.inc:554:0
>> #2 0x00000000009388d8 llvm::sys::RunSignalHandlers()
>> /home/linux/llvm-7/...
2016 Mar 25
0
Link error on Linux
...lLLVMCore
>> > -lLLVMSupport -ldl -lpthread -ltinfo -o aklo
>> > aklo-aklo.o
>> > aklo-aklo.o: In function `operator()':
>> > /mnt/a2/aklo.cpp:442: undefined reference to `llvm::outs()'
>> > aklo-aklo.o: In function `llvm::raw_ostream::operator<<(llvm::StringRef)':
>> > /home/a/llvm/include/llvm/Support/raw_ostream.h:166: undefined reference to
>> > `llvm::raw_ostream::write(char const*, unsigned long)'
>> > aklo-aklo.o: In function `operator()':
>> > /mnt/a2/aklo.cpp:443: un...
2012 May 18
2
[LLVMdev] Fixed with hex numbers with raw_ostream
I've been using the nifty:
DEBUG(errs() << "Here is the state of things:\n");
style of optional logging, but ran into an issue where I want to dump a table of information. The problem is getting the columns to line up, since the raw_ostream methods write numbers as variable length.
I've worked up a patch that adds two new methods to raw_ostream:
/// write_hex - Output \arg N as ten char hexadecimal string, including
/// 0x prefix (e.g. 0x12345678 or 0x00000001).
raw_ostream &write_hex32(uint32_t N);
/// write_hex - Ou...
2012 Nov 27
1
[LLVMdev] strange dbgs() behavior: unable to print floats in machine backend
Hi Craig,
I updated from the trunk some minutes ago, and thus got the "explicit". PrintReg constructor. When I do not include raw_ostream.h after including Debug.h in the backend cpp files, I now get compilation errors, not only when trying to print floats but also in other places. For example, for the code
bool ADRESRegisterInfo::hasReservedCallFrame(const MachineFunction &MF) const {
dbgs() << "hasReservedCallFr...
2018 Nov 03
2
llvm bug 36466 fix
...quot;Invalid RegNum"' failed.
>>>> Stack dump:
>>>> 0. Program arguments:
>>>> /home/linux/llvm-7/llvm/build/bin/llvm-dwarfdump -debug-info
>>>> C++/483.xalancbmk.O1
>>>> #0 0x000000000093ab37 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
>>>> /home/linux/llvm-7/llvm/lib/Support/Unix/Signals.inc:490:0
>>>> #1 0x000000000093abca PrintStackTraceSignalHandler(void*)
>>>> /home/linux/llvm-7/llvm/lib/Support/Unix/Signals.inc:554:0
>>>> #2 0x00000000009388d8 llvm::sys::RunSignalHandler...
2015 May 02
2
[LLVMdev] SmallString + raw_svector_ostream combination should be more efficient
+update diff
2015-05-02 7:38 GMT+03:00 Yaron Keren <yaron.keren at gmail.com>:
> I outlined (is that the right
> word?) raw_char_ostream::grow, raw_char_ostream::write (both) into
> raw_ostream.cpp with less than 10% difference in performance.
>
> Profiling reveals that the real culprit is the code line
>
> OS.reserve(OS.size() + 64);
>
> called from raw_svector_ostream::write_impl called from
> raw_svector_ostream::~raw_svector_ostream.
> The issue is already doc...
2012 May 18
0
[LLVMdev] Fixed with hex numbers with raw_ostream
...kledzik at apple.com> wrote:
> I've been using the nifty:
> DEBUG(errs() << "Here is the state of things:\n");
> style of optional logging, but ran into an issue where I want to dump a table of information. The problem is getting the columns to line up, since the raw_ostream methods write numbers as variable length.
>
> I've worked up a patch that adds two new methods to raw_ostream:
>
> /// write_hex - Output \arg N as ten char hexadecimal string, including
> /// 0x prefix (e.g. 0x12345678 or 0x00000001).
> raw_ostream &write_hex32(uint32...
2016 Dec 07
3
Race condition in raw_ostream
On Wed, Dec 7, 2016 at 10:02 AM, Mehdi Amini via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
>
> > On Dec 7, 2016, at 1:52 AM, Viacheslav Nikolaev via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
> >
> > This code from raw_ostream.h is really racy:
> >
> > raw_ostream &operator<<(StringRef Str) {
> > // Inline fast path, particularly for strings with a known length.
> > size_t Size = Str.size();
> >
> > // Make sure we can use the fast path.
> > if (Size &...
2016 Dec 07
2
Race condition in raw_ostream
...39;t albeit in a very old master.
No, I meant I didn’t see the race in the code you showed for the operator<<(). It is very possible I missed something, but you’ll need to help me figuring out where the race is.
—
Mehdi
>
> > I agree. Acquiring a lock on each write to a buffered raw_ostream is too expensive. You can always explicitly use std::mutex if you have shared raw_ostreams.
>
> Of course you can do it in your code. But there's a lot of "dbgs() <<" in the backends.
> And e.g. if you want to have multithread invocation of a debug version of the lib,...
2016 Dec 07
2
Race condition in raw_ostream
This code from raw_ostream.h is really racy:
raw_ostream &operator<<(StringRef Str) {
// Inline fast path, particularly for strings with a known length.
size_t Size = Str.size();
// Make sure we can use the fast path.
if (Size > (size_t)(OutBufEnd - OutBufCur))
return write(Str.data(),...
2009 Dec 18
2
[LLVMdev] [PATCH] Circular Buffered Debug Stream
On Friday 18 December 2009 13:56, David Greene wrote:
> On Friday 18 December 2009 13:53, David Greene wrote:
> > > > + void releaseStream() {
> > > > + // Delete the stream if needed. Otherwise, transfer the buffer
> > > > + // settings from this raw_ostream back to the underlying
> > > > stream. + if (!TheStream)
> > > > + return;
> > > > + if (DeleteStream)
> > > > + delete TheStream;
> > > > + else if (BufferSize > 0)
> > > > + TheStream-&g...
2009 Dec 18
0
[LLVMdev] [PATCH] Circular Buffered Debug Stream
...r 2009 13:56, David Greene wrote:
> > On Friday 18 December 2009 13:53, David Greene wrote:
> > > > > + void releaseStream() {
> > > > > + // Delete the stream if needed. Otherwise, transfer the
> > > > > buffer + // settings from this raw_ostream back to the
> > > > > underlying stream. + if (!TheStream)
> > > > > + return;
> > > > > + if (DeleteStream)
> > > > > + delete TheStream;
> > > > > + else if (BufferSize > 0)
> > > &...
2015 May 02
2
[LLVMdev] SmallString + raw_svector_ostream combination should be more efficient
Could you dig into why:
+ raw_ostream &write(unsigned char C) override {
+ grow(1);
+ *OutBufCur++ = C;
+ return *this;
+ }
Is 3 times as fast as raw_svector_ostream? I don't see a good reason why
that should be any faster than:
raw_ostream &operator<<(char C) {
if (OutBufCur >= OutBufEnd)
r...
2012 Nov 27
0
[LLVMdev] strange dbgs() behavior: unable to print floats in machine backend
...kesch <daniel.prokesch at gmail.com>
> wrote:
>
> > Hi,
> >
> > I accidentally stumbled upon your post.
> > I observed similar behaviour whenever I did not include
> >
> > #include "llvm/Support/Debug.h"
> > #include "llvm/Support/raw_ostream.h"
> >
> > I'm working on release 3.1 though.
> >
> > hth, Daniel
> >
> > On 11/26/2012 03:00 PM, Bjorn De Sutter wrote:
> >> Hi,
> >>
> >> I am trying to debug my backend, and observe very strange behavior with
> dbgs():
&g...