Displaying 20 results from an estimated 30000 matches similar to: "[LLVMdev] attribute for disabling fp elim"
2010 Jun 23
2
[LLVMdev] Why would -disable-fp-elim cause SEGV in JIT, when without it code works fine?
I have this situation when the same code SEGVs in JIT with option
-disable-fp-elim and works fine without it.
How can this possibly happen?
Is it possible that there is a bug in JIT that stack isn't properly
lowered for local variables when prologs are present?
Or maybe JIT can accidentally use ebp for some values when it's supposed
to be only used by frame pointer value.
Stack (see
2010 Dec 19
0
[LLVMdev] Why google-perftools fails to detect stack of JITted code? (with option -disable-fp-elim set)
I have this problem: google-perftools fails to detect stack for the code
run under JIT called through C++ api from my program. It shows in
profile like all program is one block with the name _init.
I clearly do set the option NoFramePointerElim and I do see how it makes
a difference in stack frame under gdb.
When running some code in JIT in lli (with option -disable-fp-elim)
google perftools
2013 Jul 25
2
[LLVMdev] Clang/LLVM 3.3 unwanted attributes being added: NoFramePointerElim
Since updating to LLVM 3.3, the system is generating attributes such as:
attributes #0 = { nounwind "less-precise-fpmad"="false"
"no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf"="true"
"no-infs-fp-math"="false" "no-nans-fp-math"="false"
"unsafe-fp-math"="false"
2010 Jun 23
0
[LLVMdev] Why would -disable-fp-elim cause SEGV in JIT, when without it code works fine?
You said this is on 32-bit x86? My understanding is that in that
case, gdb will use ebp/esp to unwind the stack and doesn't need dwarf.
It may have different behavior on FreeBSD if frame pointers are
normally omitted on that platform. gdb ignores them on Linux x86_64
because they are generally omitted.
This might actually be the best explanation for your symptoms, since
this is what a gdb
2010 Dec 13
2
[LLVMdev] portable way to modify the FP register?
Hi again,
On Dec 13, 2010, at 18:03, James Molloy wrote:
> To add to what Anton said, what if you're on a non-x86 target, or --no-frame-pointer is set?
for the moment we're only considering X86-64 targets and we're forcing the FP to be materialized (ie, -disable-fp-elim) to ensure we can be independent of what happens to SP.
btw, I can't think of any current ISA/ABI which
2017 May 02
2
LLVM module attributes question
I'm trying to find a way to get/set the module attributes as printed in a
module dump:
attributes #0 = { noinline nounwind uwtable
"correctly-rounded-divide-sqrt-fp-math"="false"
"disable-tail-calls"="false" "less-precise-fpmad"="false"
"no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf"
2016 Nov 25
2
Translation of custom attribute (defined for variables) from clang to llvm
Hi All,
I need your guidance about a custom attribute. I have defined one for
variables. It is accepted in the source code (without any warnings from
clang), for example in following snippet.
#define NEWATTR __attribute__((moviAttr(1)))
int main()
{
NEWATTR volatile unsigned int a = 5;
volatile unsigned int *p;
p = &a;
return (a+*p);
}
and actually when I Dump the declaration, after
2013 Mar 25
3
[LLVMdev] llvm2cpp attributes handling
Hi everyone,
We are using the llvm2cpp feature of LLVM in the VMKit project and there
are some issues that I would like to point out.
I made a tiny reproducible example here, to be clear:
echo "int main() { return 0; };" > test.c && clang test.c -emit-llvm -c
-o - | llc -march=cpp -cppgen=function -cppfor=main -o -
This command is supposed to generate the C++ code to
2013 Mar 25
0
[LLVMdev] llvm2cpp attributes handling
+Bill who worked on the attribute change
On Mon, Mar 25, 2013 at 9:15 AM, Harris BAKIRAS <h.bakiras at gmail.com> wrote:
> Hi everyone,
>
> We are using the llvm2cpp feature of LLVM in the VMKit project and there are
> some issues that I would like to point out.
>
> I made a tiny reproducible example here, to be clear:
>
> echo "int main() { return 0; };"
2012 Mar 07
3
[LLVMdev] Problem with x86 32-bit debug information ?
Hi James,
I fully agree with you and understand your statement about -O2.
Now some questions for you:
Did you try to reproduce experiments described in my previous e-mail ?
Did you look at debug informations generated for 'n' parameter on x86
32-bit & x86 64-bit ?
I'm working on my own front-end for LLVM and I had difficulties with debug
information when they are related to x86
2016 Nov 25
3
Translation of custom attribute (defined for variables) from clang to llvm
Hi Asit,
thanks for the reply.
But I guess I was not clear in my question. Actually, i dont want to use
__ATTRIBUTE__((ANNOTATE("MOVIATTR"))), since in documentation it is
stated that "This intrinsic allows annotation of local variables with
arbitrary strings. This can be useful for special purpose optimizations
that want to look for these annotations. These have no other
2015 May 15
2
[LLVMdev] RFC: ThinLTO Impementation Plan
> On 2015-May-15, at 13:15, Teresa Johnson <tejohnson at google.com> wrote:
>
> What isn't clear to me is what all uses the available
> externally linkage type currently - do you happen to know?
It's used for the `inline` keyword in the C language. If you do a
`git grep available_externally -- test/` inside a clang checkout you
might find some other uses.
$ cat
2016 Nov 28
2
Translation of custom attribute (defined for variables) from clang to llvm
Hi John,
I have looked into the EmitAutoVarAlloca() in CGDecl.cpp. However, I
could not figure out how to employ my custom attribute for code
generation. For example, my custom attribute is visible in CGDecl.cpp
but how can I generate based on my custom attribute
if (D.hasAttr<myCustomAttri>())
{
//What to do here?
}
What I wan in IR is something like below.
Without Custom Attribute:
2012 Mar 06
2
[LLVMdev] Question on debug information
On Mar 6, 2012, at 5:31 AM, Seb <babslachem at gmail.com> wrote:
> Hi all,
>
> Anyone have ideas/info on this topic ?
> Thanks
> Seb
>
> 2012/3/2 Seb <babslachem at gmail.com>
> Hi all,
>
> I'm using my own front-end to generate following code .ll file targeting x86 32-bit:
>
> ; ModuleID = 'check.c'
> target datalayout =
2016 Sep 20
4
LLVM v3.9.0 and math built-ins
Hi Mehdi,
The ISO C specification does permit the math functions to modify ‘errno’, but I thought that the ‘-fno-math-errno’ option was to tell the optimiser to assume that ‘errno’ is not modified by the math functions. Explicitly providing ‘-fno-math-errno’ is not restoring the elision optimisation that was performed by LLVM v3.8, and this is really only a driver option, with ‘-fmath-errno’
2015 Aug 31
2
alloca combining, not (yet) possible ?
Caldarale, Charles R schrieb:
> You have not provided us with the declaration for f(). Unless its argument is marked with the nocapture attribute, the compilation of g() cannot assume that f() has not retained a pointer to the x struct and is using it in the second call.
>
thanks a lot for the input. Yes, I forgot to that. The C function
declaration would have been
void f( struct a_b
2013 Sep 03
2
[LLVMdev] AttributeSet from Modules
Hello!
clang defines some AttributeSet, for example:
attributes #0 = { nounwind uwtable "less-precise-fpmad"="false"
"no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf"="true"
"no-infs-fp-math"="false" "no-nans-fp-math"="false"
"unsafe-fp-math"="false"
2012 Mar 09
0
[LLVMdev] Problem with x86 32-bit debug information ?
Hi Pogo & James,
Pogo, that is exactly the kind of answer I was expecting. Thanks for the
time you spend on this problem. I myself did also some experimenst and
found way to get what I'm expecting but I think that at least for x86 or
any parameter passed on the stack for a different architecture the way LLVM
handle debug information might be a problem. So here was the situation:
My
2014 Apr 24
2
[LLVMdev] Regression in 3.4's register allocator?
Hi,
The RoboVM project recently upgraded from LLVM 3.3 to 3.4 and with the new
version we are sometimes seeing "ran out of registers during register
allocation" errors when targeting x86 32-bit that we haven't seen before.
Nothing has changed in our bitcode generator. I have attached an IR file
which can be used to reproduce this problem. The problem occurs with -O2
and
2012 Mar 06
0
[LLVMdev] Question on debug information
Hi all,
Anyone have ideas/info on this topic ?
Thanks
Seb
2012/3/2 Seb <babslachem at gmail.com>
> Hi all,
>
> I'm using my own front-end to generate following code .ll file targeting
> x86 32-bit:
>
> ; ModuleID = 'check.c'
> target datalayout =
>