Displaying 20 results from an estimated 4000 matches similar to: "Removing "fno-rtti" flag from llvm-config --cxxflags"
2017 Jun 09
2
Subclassing LLVM Type
This [1] might worth reading, Malhar.
[1] http://llvm.org/docs/HowToSetUpLLVMStyleRTTI.html
2017-06-10 4:12 GMT+08:00 Tim Northover via llvm-dev <
llvm-dev at lists.llvm.org>:
> On 9 June 2017 at 12:03, Jajoo, Malhar via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
> > Is there some way around this ( without suggesting a change to my entire
> AST ) ?
>
> LLVM
2017 Jun 09
2
Subclassing LLVM Type
Hi,
I was wondering if it was possible to create a Dummy Type by subclassing LLVM Type.
I do not want to create a new type or even do much with this dummy type , all I need
is a placeholder type until I generate IR.
I want to use this approach as most of my AST is already configured to
accept a Type* and not a DummyType* ( which is my own class )
I explored this a bit and did manage to
2010 Mar 14
2
[LLVMdev] Why does `llvm-config --cxxflags` now include -fno-rtti ?
Hi,
I'm trying to port a piece of code using LLVM as a library to the
latest SVN version.
One difference between 2.6 and 2.7svn is that `llvm-config --cxxflags`
now include -fno-rtti. Since my code does use RTTI information (in
non-trivial dynamic_cast), my code can't compile with this. Same goes
for -fexceptions.
I've tried setting my CXXFLAGS to `llvm-config --cxxflags` -frtti
2016 Oct 07
3
RuntimeDyLdCOFF and RTTI on Windows
HI Stefan,
CC'ing Reid Kleckner, who might have some insight here, and llvm-dev as
this may be of interest to other windows JIT users.
I am facing the issue that C++ dynamic_cast doesn't work for types
> loaded from object files with RuntimeDyLd.
<snip>
Do you think it is possible that RuntimeDyLd misses type info data in
> the COFF file or doesn't wire it up
2017 May 26
2
Printing out a 128 bit decimal
Hi,
I was wondering how I can print out the result of some arithmetic on 128 bit integers.
After having a look at the API , it seems it is possible to get the integer value from the
"ConstantInt::getSextValue() " but the return value is only a int64_t.
I wish to print it on the console output and printing as a string or decimal ( using C standard library printf )
My Question :
2016 Oct 24
2
RuntimeDyLdCOFF and RTTI on Windows
I have a similar build tree to what you describe on Windows, but I get this:
$ clang -c -emit-llvm repro_input.cpp -std=c++11 -o t.bc
$ lli t.bc
LLVM ERROR: Program used external function '??_7type_info@@6B@' which could
not be resolved!
It looks like people have already reported similar issues. Have you done
anything to get past this kind of problem?
On Sat, Oct 22, 2016 at 7:18 AM,
2017 May 25
3
UD and DU chains for LLVM IR before running mem2reg
Hi,
Just had a simple question ,
The use-def and def-use chains provided by llvm::Value class ,
would they work for IR that has not been optimized by the "mem2reg" pass ?
( ie, IR code that contains memory interactions and is not in SSA form yet )
Thanks,
Malhar
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2016 Feb 19
3
undefined reference to typeinfo for CmpInst
Hi all,
I am having some some trouble with LLVM 3.8... I built it with GCC 4.8.2
with cmake and no special CXX/C flags. That means in case of GCC that
RTTI is switched on, I believe.
However, building my MCJIT application against the just built LLVM and
linking results in:
libqdp.a(qdp_llvm.o):(.rodata._ZTIN4llvm8FCmpInstE[_ZTIN4llvm8FCmpInstE]+0x10):
undefined reference to `typeinfo for
2017 May 26
2
Moving instructions from source Basic Block to dest Basic Block
Hi,
I have been trying to move some instructions between basic blocks ,
After looking at the API , I found llvm::Instruction::clone() but there
is no result value for this.
For example-
source Basic block :
continuation: ; preds = %else, %then
%iftmp = phi i32 [ 5, %then ], [ 9, %else ]
store i32 %iftmp, i32* %datasize
; 3 instructions below
2017 Jun 09
2
Subclassing LLVM Type
On 9 June 2017 at 15:29, Jajoo, Malhar via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> Thanks for that , I have read the documentation on this , but I would like to know
> if it would be the right thing to do , ie , changing the enum within llvm::Type
Well, I find the idea of a non-canonical DummyType slightly disturbing
(I don't think it's something we'd ever support
2015 Dec 02
2
-fno-rtti compilation option
Hi all,
Sorry to bother you guys with this question coming from a young beginner, but even after some hours of research, I could not find any way to solve my issue...
I have a project using LLVM APIs (3.7.0), so I compile it with options suggested by 'llvm-config -cxxflags', including -fno-rtti. Without this latter option, the build fails ("no reference to typeinfo...").
2019 Nov 18
2
Crash using exceptions
Hello,
I get a crash in my program that uses exceptions and the LLVM JIT,
even though the exceptions are controlled and thrown/catched in a part
that doesn't deal with LLVM. I noticed that llvm-config --cxxflags
includes the -fno-exceptions flag. Do I need to throw no exceptions
whatsoever in my application to use LLVM JIT?
As a minimal example, I modified the code in
2017 Jun 16
2
simplify CFG Pass in llvm
I was trying to run the simplify CFG Pass in LLVM , and delete an unreachable basic block ("continuation" below ) after running one of my own IR transforms , but I keep getting the
error -
While deleting: i8* %g
Use still stuck around after Def is destroyed: store i8 0, i8* %g
I am well aware of what that means, but isn't the whole purpose of the "simplifyCFGPass" to
2017 May 29
2
Print 128 bit value at runtime using printf
Hi,
I was trying to print out a 128 bit result at runtime using a call to printf in LLVM.
I am able to print 32 uptil 64 bit integers using the format string "%d" in printf .
Please see the code in red below , as I am having a bit difficulty in trying to print the 128 bit value computed at runtime. The code in red is never executed since the value may never be casted to a
2017 Jul 31
2
RTTI with smart pointers
Hi,
I would like to use std::shared_ptr in my pass. However I'm facing a
problem wrt RTTI. If I have a code like:
std::shared_ptr<BaseClass> x(new DerivedClass());
...
std::shared_ptr<DerivedClass> p =
std::dynamic_pointer_cast<DerivedClass>(x);
It does not compile since the default RTTI infrastructure is not used by
LLVM. Also, it's not clear to me if the
2019 Jun 28
2
Conflicts with custom passes
Hi Tim,
Thanks for your suggestion!
I built LLVM with Debug and tried this with my custom pass.
But it has the following error
error: unable to load plugin '../../trace-extractor/build/TracePass.so': '../../trace-extractor/build/TracePass.so: undefined symbol: _ZTIN4llvm10ModulePassE’
Originally I used a builtin Clang in the system and it does not produce this issue.
When I search
2011 Sep 30
4
[LLVMdev] RTTI handling
Hello all,
I was wondering how llvm and clang handles the RTTI shared libraries issue mentioned here: http://gcc.gnu.org/faq.html#dso
Is it using name or address comparison?
We have an architecture with several frameworks and plug-ins; some of the latter are being loaded and unloaded runtime.
In the past that issue caused crashes in our app, so at the moment we are overriding __dynamic_cast to
2010 Feb 19
1
[LLVMdev] Disabling rtti on default build - could it be reverted/re-enabled?
On 02/19/2010 12:54 PM, Chandler Carruth wrote:
> IMO, if you wish to preserve the ability to ever turn off RTTI, you
> must turn it off by default for the developers' builds so that any
> code which might depend on RTTI breaks immediately. Otherwise, it
> seems only a matter of time before dependencies slowly creep back into
> the code base. This has certainly proven true with
2011 Sep 30
0
[LLVMdev] RTTI handling
On Sep 30, 2011, at 9:15 AM, Somorjai, Akos wrote:
> I was wondering how llvm and clang handles the RTTI shared libraries issue mentioned here: http://gcc.gnu.org/faq.html#dso
This is really a Clang question and so belongs on cfe-dev.
> Is it using name or address comparison?
Clang strives for interoperability with GCC, which means we use address comparison on targets where GCC does.
2010 Feb 19
0
[LLVMdev] Disabling rtti on default build - could it be reverted/re-enabled?
On Thu, Feb 18, 2010 at 3:42 PM, Pekka Jääskeläinen
<pekka.jaaskelainen at tut.fi> wrote:
> From now on these users need to recompile LLVM from sources with non-default
> flags to make TCE (or other external projects using both LLVM and RTTI) to
> be able to link with it. I think this should matter something in comparison to
> a 5% disk size reduction which can be still achieved