search for: getbuffer

Displaying 20 results from an estimated 47 matches for "getbuffer".

2010 Oct 13
1
[LLVMdev] EXC_BAD_ACCESS: invalid MemoryBuffer from ContentCache::getBuffer
I'm using the latest llvm/clang 2.8 releases and am getting EXC_BAD_ACCESS crashes in ContentCache::getBuffer. This happens when I'm printing out errors from a compilation run and iterating over TextDiagnosticBuffer returned errors. When checking the errors, I construct a FullSourceLoc and do: int LineNum = SourceLoc.getInstantiationLineNumber(); int ColNum = SourceLoc.getInstantiationColumnNumber()...
2014 Sep 18
2
[LLVMdev] How to cache MCJIT compiled object into memory?
Hi, All I m not sure if this question has been asked or not. I'd like cache the MCJIT compiled object into memory buffer so it can be reused later. I followed the Andy Kaylor's example wrote an inherited class from ObjectCache and use raw_fd_ostream to save the cache and load the cache from a file. I checked raw_ostream and its subclass, maybe I am wrong but I don't see one is fit to
2010 Oct 20
0
[Rpy] "lapack routines cannot be loaded" in Ubuntu Linux 9.10
...> Hi, | > | > I'm having some issues with LAPACK. Here is the result of python -m | > "rpy2.tests" | > | > rpy2 version 2.1.7 | > | > ..............................................................................................................................getbuffer | > .getbuffer | > | > /usr/local/lib/python2.6/dist-packages/numpy-1.5.0b2-py2.6-linux-i686.egg/numpy | > | > | > May be off-topic, but Numpy 1.5.0-release is available | > (latest is 1.5.1rc1). | > | > | > /core/numeric.py:284: RuntimeWarning: Item size computed from...
2016 Jul 07
2
ObjectCache and getFunctionAddress issue
...ue_ptr<llvm::MemoryBuffer>> CachedObjs; public: virtual void notifyObjectCompiled(const llvm::Module *M, llvm::MemoryBufferRef Obj) { auto id = M->getModuleIdentifier(); auto iter = CachedObjs.find(id); if (iter == CachedObjs.end()) { auto buf = llvm::MemoryBuffer::getMemBufferCopy(Obj.getBuffer(), Obj.getBufferIdentifier()); CachedObjs.insert(std::make_pair(id, std::move(buf))); } }; virtual std::unique_ptr<llvm::MemoryBuffer> getObject(const llvm::Module *M) { auto id = M->getModuleIdentifier(); auto iter = CachedObjs.find(id); if (iter != CachedObjs.end()) { llvm::MemoryBuffer&...
2006 May 29
1
Myst IV Installer breakage
...a-25060e00fce2}, failing with error 0x80004002 err:ole:ClientIdentity_QueryMultipleInterfaces IRemUnknown_RemQueryInterface failed with error 0x80004002 err:ole:xCall RpcChannelBuffer SendReceive failed, 8007000e err:ole:xCall Failed to serialize param, hres 8007000e err:ole:xCall RpcChannelBuffer GetBuffer failed, 8007000e err:ole:xCall Failed to serialize param, hres 8007000e err:ole:xCall RpcChannelBuffer GetBuffer failed, 8007000e err:ole:xCall Failed to serialize param, hres 8007000e ... The last two lines are repeated very often. I would fix it myself but my insight in the wine code is limited...
2011 Sep 28
0
FLAC::Encoder::Stream == "FLAC__STREAM_ENCODER_VERIFY_MISMATCH_IN_AUDIO_DATA"
...| (init_status != FLAC__STREAM_ENCODER_INIT_STATUS_OK)) { return false; } /* read sectors from disc and feed to encoder */ for (unsigned int i = 0; i < trackLength; ++i) { disc.seekTrack(i, trackNum, false); ok = enc.process_interleaved((FLAC__int32*)disc.getBuffer(), samples_per_sector); FProgressCur++; if (!ok || !progressCallback()) { cout << "Flac error: " << enc.get_state().as_cstring() << endl; cout << "Flac verify state: " << enc.get_verify_decoder_state().as_cs...
2004 Aug 06
2
optimization possible?
hi, i did some tests about performance in jspeex ... uls@mainframe:~/eclipse/avrelay$ java TestClient Diff1: 0 10 Diff2: 141 started. uls@mainframe:~/eclipse/avrelay$ <p>{ SpeexEncoder e1=new SpeexEncoder(); e1.init(0,1,44100,1); byte[] by1=new byte[320]; long l1=System.currentTimeMillis(); long l2=System.currentTimeMillis(); System.out.println("Diff1:
2012 Sep 07
1
[LLVMdev] teaching FileCheck to handle variations in order
...Pat(P), Loc(L), IsCheckNext(isCheckNext) {} + : Pat(P), Loc(L), IsCheckNext(isCheckNext), PushPos(0), PopPos(0) {} }; /// CanonicalizeInputFile - Remove duplicate horizontal space from the specified @@ -517,6 +541,8 @@ static bool ReadCheckFile(SourceMgr &SM, StringRef Buffer = F->getBuffer(); std::vector<std::pair<SMLoc, Pattern> > NotMatches; + int NextCheckPopPos= 0; + SMLoc NextCheckPopLoc; while (1) { // See if Prefix occurs in the memory buffer. @@ -531,6 +557,7 @@ static bool ReadCheckFile(SourceMgr &SM, // When we find a check prefix, keep...
2018 Mar 27
4
[pre-RFC] Data races in concurrent ThinLTO processes
...t;, "tmp.o", TempFD, TempFilename); if (EC) { errs() << "Error: " << EC.message() << "\n"; report_fatal_error("ThinLTO: Can't get a temporary file"); } { raw_fd_ostream OS(TempFD, /* ShouldClose */ true); OS << OutputBuffer.getBuffer(); } // Rename to final destination (hopefully race condition won't matter here) EC = sys::fs::rename(TempFilename, EntryPath); Compared to a race-prone direct write of a buffer to a file, this code avoids a data race by first writing a buffer to a temp file and then renaming that temp file to...
2018 Mar 27
0
[pre-RFC] Data races in concurrent ThinLTO processes
...rs() << "Error: " << EC.message() << "\n";* > > * report_fatal_error("ThinLTO: Can't get a temporary file");* > > *}* > > *{* > > * raw_fd_ostream OS(TempFD, /* ShouldClose */ true);* > > * OS << OutputBuffer.getBuffer();* > > *}* > > *// Rename to final destination (hopefully race condition won't matter > here)* > > *EC = sys::fs::rename(TempFilename, EntryPath); * > > > > Compared to a race-prone direct write of a buffer to a file, this code > avoids a data race by fir...
2018 Mar 22
0
[pre-RFC] Data races in concurrent ThinLTO processes
...Filename); > if (EC) { > errs() << "Error: " << EC.message() << "\n"; > report_fatal_error("ThinLTO: Can't get a temporary file"); > } > { > raw_fd_ostream OS(TempFD, /* ShouldClose */ true); > OS << OutputBuffer.getBuffer(); > } > // Rename to final destination (hopefully race condition won't matter here) > EC = sys::fs::rename(TempFilename, EntryPath); > > Compared to a race-prone direct write of a buffer to a file, this code avoids a data race by first writing a buffer to a temp file and t...
2018 Mar 27
2
[pre-RFC] Data races in concurrent ThinLTO processes
...t;, "tmp.o", TempFD, TempFilename); if (EC) { errs() << "Error: " << EC.message() << "\n"; report_fatal_error("ThinLTO: Can't get a temporary file"); } { raw_fd_ostream OS(TempFD, /* ShouldClose */ true); OS << OutputBuffer.getBuffer(); } // Rename to final destination (hopefully race condition won't matter here) EC = sys::fs::rename(TempFilename, EntryPath); Compared to a race-prone direct write of a buffer to a file, this code avoids a data race by first writing a buffer to a temp file and then renaming that temp file to...
2018 Mar 27
0
[pre-RFC] Data races in concurrent ThinLTO processes
...Filename); > if (EC) { > errs() << "Error: " << EC.message() << "\n"; > report_fatal_error("ThinLTO: Can't get a temporary file"); > } > { > raw_fd_ostream OS(TempFD, /* ShouldClose */ true); > OS << OutputBuffer.getBuffer(); > } > // Rename to final destination (hopefully race condition won't matter here) > EC = sys::fs::rename(TempFilename, EntryPath); > > Compared to a race-prone direct write of a buffer to a file, this code avoids a data race by first writing a buffer to a temp file and t...
2018 Mar 27
0
[pre-RFC] Data races in concurrent ThinLTO processes
...rs() << "Error: " << EC.message() << "\n";* > > * report_fatal_error("ThinLTO: Can't get a temporary file");* > > *}* > > *{* > > * raw_fd_ostream OS(TempFD, /* ShouldClose */ true);* > > * OS << OutputBuffer.getBuffer();* > > *}* > > *// Rename to final destination (hopefully race condition won't matter > here)* > > *EC = sys::fs::rename(TempFilename, EntryPath); * > > > > Compared to a race-prone direct write of a buffer to a file, this code > avoids a data race by fir...
2018 Mar 22
4
[pre-RFC] Data races in concurrent ThinLTO processes
...t;, "tmp.o", TempFD, TempFilename); if (EC) { errs() << "Error: " << EC.message() << "\n"; report_fatal_error("ThinLTO: Can't get a temporary file"); } { raw_fd_ostream OS(TempFD, /* ShouldClose */ true); OS << OutputBuffer.getBuffer(); } // Rename to final destination (hopefully race condition won't matter here) EC = sys::fs::rename(TempFilename, EntryPath); Compared to a race-prone direct write of a buffer to a file, this code avoids a data race by first writing a buffer to a temp file and then renaming that temp file to...
2018 Mar 27
1
[pre-RFC] Data races in concurrent ThinLTO processes
...t;, "tmp.o", TempFD, TempFilename); if (EC) { errs() << "Error: " << EC.message() << "\n"; report_fatal_error("ThinLTO: Can't get a temporary file"); } { raw_fd_ostream OS(TempFD, /* ShouldClose */ true); OS << OutputBuffer.getBuffer(); } // Rename to final destination (hopefully race condition won't matter here) EC = sys::fs::rename(TempFilename, EntryPath); Compared to a race-prone direct write of a buffer to a file, this code avoids a data race by first writing a buffer to a temp file and then renaming that temp file to...
2012 May 08
0
[LLVMdev] [RFC] llvm/include/Support/OutputBuffer.h
...rs mailing list > LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > I like it in general. The only comment I have is that it should match the MemoryBuffer interface where possible. static error_code getFile(...); const char *getBufferStart() const; const char *getBufferEnd() const; size_t getBufferSize() const; StringRef getBuffer() const; const char *getBufferIdentifier() const; - Michael Spencer
2012 Sep 07
5
[LLVMdev] teaching FileCheck to handle variations in order
...Pat(P), Loc(L), IsCheckNext(isCheckNext) {} + : Pat(P), Loc(L), IsCheckNext(isCheckNext), PushPos(0), PopPos(0) {} }; /// CanonicalizeInputFile - Remove duplicate horizontal space from the specified @@ -517,6 +541,8 @@ static bool ReadCheckFile(SourceMgr &SM, StringRef Buffer = F->getBuffer(); std::vector<std::pair<SMLoc, Pattern> > NotMatches; + int NextCheckPopPos= 0; + SMLoc NextCheckPopLoc; while (1) { // See if Prefix occurs in the memory buffer. @@ -531,6 +557,7 @@ static bool ReadCheckFile(SourceMgr &SM, // When we find a check prefix, keep...
2009 Feb 24
2
[ANNOUNCE] xf86-video-intel 2.6.2
Here comes a pretty significant bugfix release for the 2.6 2D series. The goal of this release is to get out the major fixes for GEM and KMS that we think we've pounded on enough to be stable -- certainly more stable than previously. Notable fixes include a significant BO memory usage reduction (which many have suffered from with compositing), textured XV suppor twith KMS, and rotation
2012 Sep 07
0
[LLVMdev] teaching FileCheck to handle variations in order
On 9/7/2012 7:20 AM, Matthew Curtis wrote: > > The attached patch implements one possible solution. It introduces a > position stack and a couple of directives: > > * 'CHECK-PUSH:' pushes the current match position onto the stack. > * 'CHECK-POP:' pops the top value off of the stack and uses it to set > the current match position. > > The above