Displaying 20 results from an estimated 253 matches for "cerr".
Did you mean:
_err
2006 Dec 07
7
[LLVMdev] #include <iostream>
...there should be no reason for having
"#include <iostream>" in any library source code file, except for lib/
Support/Streams.cpp. Please use the following instead:
OLD NEW
--- ---
std::ostream llvm::OStream
std::istream llvm::IStream
std::cerr llvm::cerr
std::cerr llvm::cout
std::cin llvm::cin
DEBUG(std::cerr DOUT
If you have something like this:
void print(std::ostream& O);
You can pass the LLVM streams in like this:
print(*cerr.stream());
Or you can change the print() method to take an llvm ost...
2008 Nov 18
2
[LLVMdev] print out instruction
When I try to print out a instruction by the following way, I am getting the
error message below.
Anyone knows what's the problem?
Instruction* inst;
...
inst-print(cerr);
testbuild.cpp:178: error: no matching function for call to
'llvm::Instruction::print(llvm::OStream&)'
/x/pchsu/llvm/llvm-2.4/include/llvm/Value.h:83: note: candidates are: void
llvm::Value::print(std::ostream&, llvm::AssemblyAnnotationWriter*) const
/x/pchsu/llvm/llvm-2.4/include...
2011 May 03
1
[LLVMdev] Using Bugpoint to debug miscompilation
...ug.
Running lli on my bitcode file causes a segmentation fault.
However, running bugpoint as
bugpoint file.bc
gives me the following errors,
/tmp/ccAdmNqH.o: In function `_ZL17bus_error_handleriP7siginfoPv':
bugpoint-test-program.bc-Vega5s.cbe.c:(.text+0x1b4e1): undefined reference
to `std::cerr'
/tmp/ccAdmNqH.o: In function `bb_poolcheck_debug':
bugpoint-test-program.bc-Vega5s.cbe.c:(.text+0x1bdbb): undefined reference
to `std::cerr'
/tmp/ccAdmNqH.o: In function `DisplayChessBoard_OC_TEST':
bugpoint-test-program.bc-Vega5s.cbe.c:(.text+0x3247d): undefined reference
to `std:...
2011 Mar 03
3
top and allocation issues
In a context where exceptions are caught, I ran
the fragment:
cerr << "allocating" << endl;
char* arr[100];
for (int jj = 0; jj < 10; ++jj)
{
cerr << "jj = " << jj << endl;
arr[jj] = new char[2000000000];
sleep (30);
}
sleep (10);
for (int jj = 0; jj < 10; ++jj)
de...
2009 Feb 27
3
[LLVMdev] warning from -instcombine
Hi,
I noticed this code in lib/Transforms/Scalar/InstructionCombining.cpp:
cerr << "WARNING: While resolving call to function '"
<< Callee->getName() << "' arguments were dropped!\n";
If you're using LLVM as a static compiler, this warning is a bit
incongruous, because it's not formatted in the same way as wa...
2006 Sep 20
1
help with function
...,7183688,7407924,7538366,7336039,8869193,7902341,
6369089,6211886))
stdr<-runif(100,0,0.5)
stdc<-runif(100,0,0.5)
BC<-runif(1000,0,100)
#model calibration
calib<-function(x){
v<-sample(stdr,1)
cr<-sample(stdc,1)
N<-rnorm(1)
Bq<-sample(BC,1)
Rerr<-exp(N*v-(v^2/2))
Cerr<-exp(N*cr-(cr^2/2))
Bt<-vector();Bt[1]=B0;Bt[2]=B0
Rt<-vector()
Ct<-vector()
for (i in 1:length(x$years)){
Ct[i]<-1/Bq*Bt[i]*Cerr
Rt[i]<-Bt[i]/(a+b*Bt[i])
Bt[i+2]<-(1-m)*Bt[i+1]+Rt[i]*Rerr-Ct[i+1]
}
out<-new.env()
out$yr<-x$years[1:length(x$years)]
out$Bt...
2003 May 22
1
[LLVMdev] allow gcc .... /full/path/to/libfoo.a
...amp;Directory,
- std::vector<Module*> &Objects,
- bool &isArchive) {
- if (FileExists(Directory + "lib" + LibName + ".a")) {
- std::string ErrorMessage;
- if (Verbose) std::cerr << " Loading '" << Directory << "lib"
- << LibName << ".a'\n";
- if (!ReadArchiveFile(Directory + "lib" + LibName + ".a", Objects,
- &ErrorMessage)) {...
2007 Nov 08
3
[LLVMdev] Newbie JITter
...ot;
" call i32 @puts(i8 * %cast210) ;
i32\n"
" ret i32 0\n"
"};\n";
int exitCode = 0;
try {
ParseError ParseErr;
Module* M = ParseAssemblyString(assembler, new Module("test"),
&ParseErr);
if (!M) {
cerr << "parse error: " << ParseErr.getMessage() << "\n";
return 1;
}
std::cout << "\nWe just constructed this LLVM module:\n\n" << *M;
std::string MArchErr;
const TargetMachineRegistry::entry* MArch =
TargetMachineRegistry::...
2006 Sep 19
1
-Need help with function
...,7183688,7407924,7538366,7336039,8869193,7902341,
6369089,6211886))
stdr<-runif(100,0,0.5)
stdc<-runif(100,0,0.5)
BC<-runif(1000,0,100)
#model calibration
calib<-function(x){
v<-sample(stdr,1)
cr<-sample(stdc,1)
N<-rnorm(1)
Bq<-sample(BC,1)
Rerr<-exp(N*v-(v^2/2))
Cerr<-exp(N*cr-(cr^2/2))
Bt<-vector();Bt[1]=B0;Bt[2]=B0
Rt<-vector()
Ct<-vector()
for (i in 1:length(x$years)){
Ct[i]<-1/Bq*Bt[i]*Cerr
Rt[i]<-Bt[i]/(a+b*Bt[i])
Bt[i+2]<-(1-m)*Bt[i+1]+Rt[i]*Rerr-Ct[i+1]
}
out<-new.env()
out$yr<-x$years[1:length(x$years)]
out$Bt...
2009 Feb 27
0
[LLVMdev] warning from -instcombine
On Feb 27, 2009, at 1:47 AM, Jay Foad wrote:
> Hi,
>
> I noticed this code in lib/Transforms/Scalar/InstructionCombining.cpp:
>
> cerr << "WARNING: While resolving call to function '"
> << Callee->getName() << "' arguments were dropped!\n";
>
> If you're using LLVM as a static compiler, this warning is a bit
> incongruous, because it's not formatted in...
2009 Jun 23
0
[LLVMdev] [PATCH] Catch NULL return value of ExecutionEngine::create()
...=====
--- tools/lli/lli.cpp (revision 73978)
+++ tools/lli/lli.cpp (working copy)
@@ -144,8 +144,11 @@
InitializeNativeTarget();
EE = ExecutionEngine::create(MP, ForceInterpreter, &ErrorMsg, OLvl);
- if (!EE && !ErrorMsg.empty()) {
- std::cerr << argv[0] << ":error creating EE: " << ErrorMsg <<
"\n";
+ if (!EE) {
+ if (!ErrorMsg.empty())
+ std::cerr << argv[0] << ":error creating EE: " << ErrorMsg <<
"\n";
+ else
+ std::cerr &...
2011 Apr 24
2
random roundoff?
...box, in a C++ program that does much arithmetic,
including numerous matrix multiplications, I have a situation in
in which the result depends on the nature of nearby I/O. Thus,
with all arithmetic done with type double, and where values
are mostly in the range [-1.0e0,+1.0e0] or nearby, I do:
cerr << "some stuff" << endl;
mat3 = matmult(mat1,mat2);
I get a difference of the order 1.0e-15 depending on whether the
cerr line does or does not end in "endl" as shown.
I am imagining that there is some "randomness" in the roundoff
that depends on the I...
2006 Dec 08
0
[LLVMdev] #include <iostream>
...> "#include <iostream>" in any library source code file, except for lib/
> Support/Streams.cpp. Please use the following instead:
>
> OLD NEW
> --- ---
> std::ostream llvm::OStream
> std::istream llvm::IStream
> std::cerr llvm::cerr
> std::cerr llvm::cout
> std::cin llvm::cin
> DEBUG(std::cerr DOUT
>
> If you have something like this:
>
> void print(std::ostream& O);
>
> You can pass the LLVM streams in like this:
>
> print(*cerr.stream());
>...
2006 Dec 08
0
[LLVMdev] #include <iostream>
...> "#include <iostream>" in any library source code file, except for lib/
> Support/Streams.cpp. Please use the following instead:
>
> OLD NEW
> --- ---
> std::ostream llvm::OStream
> std::istream llvm::IStream
> std::cerr llvm::cerr
> std::cerr llvm::cout
> std::cin llvm::cin
Nice! Can you add this to the coding standard guide when you get a
chance?
Thanks,
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
2006 Dec 11
0
[LLVMdev] #include <iostream>
...> "#include <iostream>" in any library source code file, except for lib/
> Support/Streams.cpp. Please use the following instead:
>
> OLD NEW
> --- ---
> std::ostream llvm::OStream
> std::istream llvm::IStream
> std::cerr llvm::cerr
> std::cerr llvm::cout
> std::cin llvm::cin
> DEBUG(std::cerr DOUT
>
> If you have something like this:
>
> void print(std::ostream& O);
>
> You can pass the LLVM streams in like this:
>
> print(*cerr.stream());
>
&...
2009 Sep 04
2
[LLVMdev] Error in Hello World Pass
Hi,
I am trying to compile the Hello World pass (described at
http://llvm.org/docs/WritingAnLLVMPass.html#basiccode) in an LLVM Project
and I get an error, 'no match for ‘operator<<’ at line
llvm::cerr << "*Hello: *" << F.getName() << "\n";
But when I looked up in the LLVM API Documentation, I think "<<"
operator is not overloaded for the StringRef class returned by
getName() of the Function class. If I replace the above line with
llvm::cerr...
2010 Sep 14
1
[LLVMdev] Wierd behavior from getAnalysis<>
...yTargsPass>();
I am apparently getting back an object of type llvm::Pass;
This is how I checked it: with the following code I create the Object print
its address value and add it to the pass manager
InsertDummyTargsPass* p = new InsertDummyTargsPass(bp, ipInfo,
exeInfo);
std::cerr << "dummytargspass :" << p;
llvm::Pass* parent = p;
std::cerr << "value of parent:" << parent;
PM.add(p);
I get from the cerr statement
dummytargspass :0x971acd8
value of parent:0x971acf4
In the InsertDummyTargsPass::runOnM...
2006 Mar 19
1
[LLVMdev] Idioms for retrieving global symbols and inheritance
...his is
compiled fine. Following is sample code and output.
Code:
-------------
for ( SymbolTable::type_iterator itr1 = symbTab.type_begin(), itrend1
= symbTab.type_end(); itr1 != itrend1; itr1++ ) {
string typeName = itr1->first;
if ( lldbprfx.compare( typeName.substr( 0, 5 ) ) != 0 ) {
cerr << typeName << endl;
for ( SymbolTable::value_const_iterator itr2 =
symbTab.value_begin( itr1->second ),
itrend2 = symbTab.value_end( itr1->second ); itr2 != itrend2; itr2++ ) {
if ( lldbprfx.compare( ( itr2->first ).substr( 0, 5 ) ) != 0 ) {
cerr <<...
2002 Dec 06
3
[LLVMdev] Tarjan+function_ptrs == trouble ? (fwd)
Test Cases:
(attached)
Iteration code:
(...)
typedef TarjanSCC_iterator<CallGraph*> MyTarjan;
CallGraph& callGraph = getAnalysis<CallGraph>();
MyTarjan iter = tarj_begin(&callGraph);
MyTarjan end = tarj_end(&callGraph);
while(iter!=end)
iter++;
(...)
if you take the time to print out the function each non-looping node iter
traverses, it never reaches main...
2004 Apr 01
3
[LLVMdev] Verifier & abort()
...fect. So, I'd
prefer it if there was a way to override this behavior.
Would anyone mind if I changed the Verifier to allow installation of a
failure handler function that defaults to abort()? I would also like to
change the verifier to print to an arbitrary iostream instead of always
to std::cerr. This will help me capture the verifier's output and
produce it to the user within an "ICE" message. Again, the default would
be std::cerr so if you don't use the new api, the current behavior is
retained.
Reid.
-------------- next part --------------
An HTML attachment was scrub...