Displaying 20 results from an estimated 20000 matches similar to: "[LLVMdev] exception handling broken on x86-64?"
2008 Feb 09
0
[LLVMdev] exception handling broken on x86-64?
On Feb 9, 2008, at 6:53 AM, Thomas Neumann wrote:
> Hi,
>
> when building the second release candidate of llvm 2.2 I noticed that
> exception handling seems to be broken on Linux x86-64. The exception
> is
> thrown but never caught.
> This can be seen by this trivial example:
>
> #include <iostream>
> using namespace std;
> class A { };
> int main()
2007 May 31
1
Problems when linking to R shared library
Folks,
I'm fairly sure that I'm doing something stupid, but I'm getting a few
really strange results from *some* of the distributions, but by no means
all,
when I link directly to the R shared library.
I've tried this on both Windows with the precompiled Mingw binary of R-2.5.0
(compiling my code with MinGW-3.4.2), and by building R-2.5.0 on Mandriva
Linux with gcc-3.4.4 and
2004 Jun 09
1
About dll from c++ routine
Hi folks,
My system is Windows98 + R1.9.0.
The path for my system is c:\perl\bin; c:\mingw\bin; c:\rtools;
c:\windows; c:\windows\command; c:\rw1090\bin.
I created three files followed the examples in “Writing R extensions” in
the directory c:\temp:
// X.hh
class X {
public: X (); ~X ();
};
class Y {
public: Y (); ~Y ();
};
// X.cc
#include <iostream>
#include "X.hh"
static
2003 Apr 29
4
Bug in g++ 2.95.4 (Pointer to member functions)
Hi,
I think I have discovered a bug in FreeBSD 4.8-STABLE's system C++ compiler:
% gcc -v
% Using builtin specs.
% gcc version 2.95.4 20020320 [FreeBSD]
Here is a stripped down example that can be used to reproduce the bug:
// ----------- begin bug.cpp -----------
#include <iostream>
class Class {
public:
void M1 (void) { cout << "M1" << endl; };
void M2
2013 Jan 26
1
[LLVMdev] MCJIT/interpreter and iostream
As of LLVM 3.2, is it possible to use iostream with the MCJIT or interpreter execution engines? I'm getting some errors...
Each of these commands correctly prints "hello":
echo -e '#include <stdio.h>\nint main(){ printf("hello"); }' | clang -cc1 -emit-llvm-bc -x c++ | lli -use-mcjit
echo -e '#include <iostream>\nint main(){ std::cout <<
2018 Dec 09
2
Parse LLVM IR
Hello,
I am a newbie to LLVM and right now I am on the hook to parse some IR code
and do some instrumentations. However, my problem is that no matter how I
tweak my parsing code, it simply cannot print out anything.
So here is my C code:
int your_fun(int arg2) {
int x = arg2;
return x+2;
}
And here is my parsing code:
#include <llvm/IR/Module.h>
#include
2009 Sep 16
3
[LLVMdev] llc and debug information
Hi all,
I'm having an issue with debug information and llc. A test program:
#include <iostream>
using namespace std;
void foo() {
cout << "My return address is " << __builtin_return_address(0) <<
endl << flush;
}
int main(int argc, char *argv[]) {
foo();
return 0;
}
When I compile my test program to LLVM bytecode, and then use
2012 Jan 27
2
The following code (using rgamma) hangs
Hi,
I'm seeing something that may be a bug in R's standalone math library,
which is packaged by Debian as r-mathlib. I reported it to the Debian BTS
as http://bugs.debian.org/657573
I'm using Debian squeeze, and the code was tested with r-mathlib 2.11.1-6
(default on stable) and 2.14.1-1 (from testing/unstable).
I summarize this report below. The following code with the R math
2008 Mar 17
1
how to get access to C++ Objects
In the "Writing R Extensions" manual appears this example, to get access to C++ function using the R commands:
R> dyn.load(paste("X", .Platform$dynlib.ext, sep = ""))
constructor Y
R> .C("X_main")
constructor X
destructor X
list()
That gives me access to the function "X_main", but how to get access to methods and properties
2015 May 30
2
[LLVMdev] Linking modules across contexts crashes
I get a crash when I try to link multiple modules registered in their
individual contexts.
Documentation for Linker::LinkModules doesn't mention anything about
contexts, and the first link succeeds. But the second link crashes.
Is this not the right way to merge such modules? If not, then what is
the right way?
In any case, documentation for Linker::LinkModules should say if
contexts are
2009 Sep 16
0
[LLVMdev] llc and debug information
On Wed, Sep 16, 2009 at 1:34 PM, Nick Jalbert <jalbert at eecs.berkeley.edu> wrote:
> Hi all,
> I'm having an issue with debug information and llc. A test program:
> #include <iostream>
> using namespace std;
> void foo() {
> cout << "My return address is " << __builtin_return_address(0) <<
> endl << flush;
> }
2006 Sep 16
1
[LLVMdev] cpp program linking error
Hi,
i have compile and built the llvm-gcc4 and llvm 1.8a in my machine, but
there is some problem about llvm-gcc4. It can not compile a
cpp code like this:
#include <iostream>
using std::cout;
using std::endl;
int main()
{
cout << "Hello" << endl;
}
$llvm-g++ hello.cc -o hello
/developer/zsth/llvm-gcc/install/bin/../lib/gcc/i686-pc-linux-gnu/4.0.1/../../..
2006 Mar 13
1
Help on interfacing C++ with R
Hi, I am trying to set up a C++ library for my R code. I followed the
R-extension manual but found out that the example of "X.cpp, X_main.cpp"
is somewhat too simple. Here is my code:
//lib4R.h testing for interfacing C++ with R -- using C++ library in R
#include <iostream>
using namespace std;
class lib4R {
public:
lib4R();
~lib4R();
int
2007 Nov 14
1
[LLVMdev] overflow semantics + optimization?
Hi,
While experimenting with LLVM as a gcc-drop-in I noticed some
interesting behavior related to integer overflow. Consider the
following test program:
#include <iostream>
int main() {
int x = 0;
for(int i = 0; i < 123456789; i++) {
x += i;
}
std::cout << x << std::endl;
return 0;
}
Compiled using the latest llvm-g++ (2.1, mac os x universal tarball)
with no
2008 Sep 27
3
Query::MatchAll
Why there still been rank when using Query::MatchAll() ?
2007 Jul 20
1
[LLVMdev] LLVM-MIPS
Selon Bruno Cardoso Lopes <bruno.cardoso at gmail.com>:
> Hi Hidle,
>
> Yes, it's not complete yet but i'm working on it.
> I can compile simple sources. As it's on a experimental
> stage i did not added the patch to the llvm autoconf files.
>
Right now, I tried the last mingwin binaries of llvm-gcc (downloaded from your
official website) : I compared the
2007 Apr 04
1
Accessing C++ code from R
Hi,
I am trying to use existing C++ code from R. I have no problems
compiling C code and using it in R, but with C++ I'm running into
problems.
Here's the compiler output:
Macintosh-10:~/Desktop/dissertation/Model - CPP version/R labguest$
g++ -I/Library/Frameworks/R.framework/Resources/include
-I/Library/Frameworks/R.framework/Resources/include/i386 *.cpp
In file included from
2001 Apr 18
1
Runtime error with winelib and CreateMutex()
Can't find anything at goggle, so hope someone in this group can help.
I've installed codeweavers-wine-20010305-1.i386.rpm on my RedHat 7.0,
which put everything in /opt/wine/.
I built the following program (in file hello.cpp):
#include <iostream.h>
#include <windows.h>
int main()
{
INT i = 0;
cout << "i = " << i << endl;
HANDLE h =
2012 Sep 03
1
[LLVMdev] Selection DAG output as bare DAG, code review
Hello all,
I recently foudn myself wanting to view the basic blocks in the
selection DAG as pure DAGs - so just as a list of edges, with no other
information. I added the below code to the start of the "
void SelectionDAGISel::CodeGenAndEmitDAG()" function. It creates a
separate txt file for each basic block and gives a list of edges
between nodes. The segment of code is below -
2005 Jan 31
2
type of list elements in .Call
Dear People,
Here is something I do not understand. Consider
*************************************************
foo.cc
*************************************************
#include <iostream>
#include <R.h>
#include <Rinternals.h>
using std::cout;
using std::endl;
extern "C"
{
SEXP printlst(SEXP lst);
}
SEXP printlst(SEXP lst)
{
for(int i=0; i<length(lst);