Displaying 20 results from an estimated 300 matches similar to: "DebugInfo, Metadata usage"
2017 May 24
2
DebugInfo, Metadata usage
I'll ask again that question.
Thank you Adrian, I've looked through IR Verifier and it helps me to
understand some parts of retrieving metadata and debug info. But , after
that, I've faced with another problem:
Original Code:
std::wcout << L"WCHAR_HELLOWORLD" << std::endl;b
IR Code:
@.str.2 = private unnamed_addr constant [17 x i32] [i32 87, i32 67, i32
72,
2015 Mar 10
4
[LLVMdev] n-bit bytes for clang/llvm
Back in 2009 there was some discussion of the practicality of supporting
char sizes greater than 8-bit:
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2009-September/thread.html#6349
http://lists.cs.uiuc.edu/pipermail/llvmdev/2009-September/thread.html#26025
with the consensus seemingly being "quite doable, please get a good patch
and submit".
However the current code appears (to my
2015 Mar 11
3
[LLVMdev] n-bit bytes for clang/llvm
> It's definitely doable, but I'd be worried about the maintenance burden.
Yes, that is a problem.
We are currently not allowed to reveal our target (which has 16-bit bytes, and registers with non-power-of-two bit widths) fully, and therefore not able to submit it upstream. One idea we have toyed with is to create a simple "dummy" version of our target, just to be able
2019 Apr 04
2
single-threaded code-gen and how to make it support multi-thread
Hi llvm-dev,
Our code base has a ancient copy of llvm (ver 3.5.1), and it uses the LLVM
code gen for some domain-specific language.
The previous dev left a global lock around the usage of LLVM code gen
stating that because LLVM code gen can only be accessed single-threaded it
needs to be protected with this global lock.
But now this lock has caused some perf issues as we pretty much lose
2017 Oct 01
2
load with alignment of 1 crashes from being unaligned
Below is attached a full IR module that can reproduce this issue, but the
part to notice is this:
%Foo96Bits = type <{ i24, i24, i24, i24 }>
define internal fastcc i16 @main.0.1() unnamed_addr #2 !dbg !113 {
Entry:
%value = alloca %Foo96Bits, align 1
%b = alloca i24, align 4
%0 = bitcast %Foo96Bits* %value to i8*, !dbg !129
call void @llvm.memcpy.p0i8.p0i8.i64(i8* %0, i8* bitcast
2019 Apr 04
2
single-threaded code-gen and how to make it support multi-thread
Thank you Johannes, I looked it up and it seems that we're creating one
LLVMContext per compilation "unit", not sure if that matters. i.e. there's
no single globally shared LLVMContext object.
Is LLVMContext *the* concurrency isolation (or unit) here?
On Wed, Apr 3, 2019 at 6:34 PM Doerfert, Johannes <jdoerfert at anl.gov> wrote:
> Do you use one llvm context or one
2017 Jun 19
2
LLVM behavior different depending on function symbol name
using `opt --print-after-all -O3` I see that EarlyCSE is interpreting the
call to `ceil` and constant fold:
*** IR Dump After Early CSE ***
; Function Attrs: nobuiltin nounwind
define i1 @do_test() #2 {
Entry:
%0 = call fastcc float @ceil(float 0.000000e+00) #6
%1 = call fastcc float @ceil32(float 0.000000e+00) #6
%2 = fcmp fast oeq float 0.000000e+00, %1
ret i1 %2
}
So just running `opt
2017 Nov 15
2
workaround for debug info bug?
I just reported this bug:
https://bugs.llvm.org/show_bug.cgi?id=35314
This very simple IR is causing infinite recursion
in llvm::DwarfUnit::getOrCreateTypeDIE in llvm 5.0.0.
Is there a workaround? Is anyone willing to save me a recompile and check
if this is fixed in 5.0.1 or trunk?
`clang -c test.ll` repros the issue.
; ModuleID = 'test'
source_filename = "test"
target
2017 Jun 19
2
LLVM behavior different depending on function symbol name
On Mon, Jun 19, 2017 at 12:06 PM, Mehdi AMINI <joker.eph at gmail.com> wrote:
> Hi,
>
> 2017-06-19 8:45 GMT-07:00 Andrew Kelley via llvm-dev <
> llvm-dev at lists.llvm.org>:
>
>> Greetings,
>>
>> I have a Zig implementation of ceil which is emitted into LLVM IR like
>> this:
>>
>> ; Function Attrs: nobuiltin nounwind
>> define
2013 Mar 04
2
[LLVMdev] llvm cannot iterate a [3 x i8]
Hello everyone,
I am trying to "parse" a part of LLVM IR. More exactly, from
@.str = private unnamed_addr constant [3 x i8] c"DS\00", section
"llvm.metadata"
I want to get "DS". It is the single place in the whole bytecode from where
I can get it. I have :
...
Value *VV = cast<Value>(LD100->getOperand(1)->getOperand(0));
2017 Sep 17
2
assertion triggered since update to llvm 5
Dump the IR before newgvn and run through opt -newgvn. It should crash. I'm
not familiar with your frontend but you might want to use -mllvm
-opt-bisect-limit.
On Sep 17, 2017 1:06 PM, "Andrew Kelley" <superjoe30 at gmail.com> wrote:
Valgrind is strictly better than address sanitizer, is that right? It runs
valgrind-clean:
[nix-shell:~/dev/zig/build-llvm5-debug]$ valgrind
2009 Sep 23
2
[LLVMdev] DebugFactory
On Wed, Sep 23, 2009 at 2:27 PM, Talin <viridia at gmail.com> wrote:
> On Wed, Sep 23, 2009 at 1:51 PM, Dan Gohman <gohman at apple.com> wrote:
>>
>> On Sep 22, 2009, at 4:49 PM, Talin wrote:
>>>
>>> // Calculate the size of the specified LLVM type.
>>> Constant * DebugInfoBuilder::getSize(const Type * type) {
>>> Constant * one =
2017 Sep 16
2
assertion triggered since update to llvm 5
When zig updated to llvm 5 we started hitting this assertion:
zig:
/home/andy/downloads/llvm-project/llvm/include/llvm/Support/Casting.h:106:
static bool llvm::isa_impl_cl<To, const From*>::doit(const From*) [with To
= llvm::Instruction; From = llvm::Value]: Assertion `Val && "isa<> used on
a null pointer"' failed.
I wonder if however this was caused by an
2017 Sep 17
2
assertion triggered since update to llvm 5
Can you please open a bug on bugzilla and attach the ir testcase? Your fix
doesn't look right (just hiding the assertion failure)
On Sep 17, 2017 10:45 AM, "Andrew Kelley via llvm-dev" <
llvm-dev at lists.llvm.org> wrote:
> What do you think about this patch?
>
> --- a/llvm/lib/Transforms/Scalar/NewGVN.cpp
> +++ b/llvm/lib/Transforms/Scalar/NewGVN.cpp
> @@
2009 Oct 02
0
[LLVMdev] DebugFactory
Here is a patch that does just that.
On Wed, Sep 23, 2009 at 3:38 PM, Devang Patel <devang.patel at gmail.com>wrote:
> On Wed, Sep 23, 2009 at 2:27 PM, Talin <viridia at gmail.com> wrote:
> > On Wed, Sep 23, 2009 at 1:51 PM, Dan Gohman <gohman at apple.com> wrote:
> >>
> >> On Sep 22, 2009, at 4:49 PM, Talin wrote:
> >>>
> >>>
2012 Jan 20
1
[LLVMdev] context/scope of instruction
Am 20.01.2012 um 18:12 schrieb Devang Patel:
>
> On Jan 19, 2012, at 10:12 AM, Christian Jacobs wrote:
>
>> Hello,
>> I need to know how I get the LLVM::IDScope object of an instruction.
>>
>> My program contains:
>> call void (...)* @commit(), !dbg !16
>>
>> !16 = metadata !{i32 16, i32 5, metadata !8, null}
>>
>> !8 = metadata
2017 Sep 17
4
assertion triggered since update to llvm 5
So, 90% of the time I've seen this, it was memory corruption, usually use
after free. I know I fixed one after 5.0 branched.
You should compile with address sanitizer enabled, and I suspect you will
find the issue quicky.
If not, we really need ir that reproduces it.
On Sun, Sep 17, 2017, 12:27 PM Andrew Kelley via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> I think I forgot to
2012 Sep 28
0
[LLVMdev] Getting Static Array Content
I'm trying to get the values in a static global array. What is the best way
to go about doing this?
Once I have the pointer (Ie GlobalVariable *GV =
dyn_cast<GlobalVariable>(itr))?
I basically just want to check for ConstantDataSequential and print out the
values.
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2012 Sep 28
0
[LLVMdev] Fwd: Re: Getting Static Array Content
Forgot cc'ing the list...
-------- Original Message --------
Subject: Re: [LLVMdev] Getting Static Array Content
Date: Fri, 28 Sep 2012 08:55:51 +0200
From: Ivan Llopard <ivanllopard at gmail.com>
To: Ryan Taylor <ryta1203 at gmail.com>
Hi Ryan,
On 28/09/2012 02:07, Ryan Taylor wrote:
> I'm trying to get the values in a static global array. What is the
> best
2012 Sep 28
0
[LLVMdev] Getting Static Array Content
Ivan,
Yes, I had used these for some other values. Looks like this is a
constant type that I wasn't accounting for.
Thanks.
On Thu, Sep 27, 2012 at 11:55 PM, Ivan Llopard <ivanllopard at gmail.com>wrote:
> Hi Ryan,
>
>
> On 28/09/2012 02:07, Ryan Taylor wrote:
>
> I'm trying to get the values in a static global array. What is the best
> way to go about