search for: source_filenam

Displaying 20 results from an estimated 137 matches for "source_filenam".

Did you mean: source_filename
2017 Jun 22
2
Legal names for Functions and other Identifiers
...ttps://github.com/llvm-mirror/polly/blob/6b8cb877c2fa3ee0e626cac5811115a9c5c71b5b/test/GPGPU/kernel-params-only-some-arrays.ll#L19-L20> +++ b/test/GPGPU/kernel-params-only-some-arrays.ll @@ -16,12 +16,12 @@ ; B[i] += 42; ; } -; KERNEL: ; ModuleID = 'kernel_0' -; KERNEL-NEXT: source_filename = "kernel_0" +; KERNEL: ; ModuleID = 'kernel_params_only_some_arrays_%or.cond---%or.end9_kernel_0' +; KERNEL-NEXT: source_filename = "kernel_params_only_some_arrays_%or.cond---%or.end9_kernel_0" I don't understand how Module verification <https://github.com/llvm...
2018 Dec 26
2
Segfault report
...ad debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Core was generated by `dovecot/imap [kkhany at amfes.c'. Program terminated with signal SIGSEGV, Segmentation fault. #0? event_want_debug_log (event=event at entry=0x0, source_filename=source_filename at entry=0x7efd84178aa3 "mail-storage.c", ??? source_linenum=source_linenum at entry=1261) at event-log.c:120 120???????????? if (event->forced_debug) (gdb) bt full #0? event_want_debug_log (event=event at entry=0x0, source_filename=source_filename at entry=0x7efd841...
2018 Dec 26
0
Segfault report
...ead_db enabled] > Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". > Core was generated by `dovecot/imap [kkhany at amfes.c'. > Program terminated with signal SIGSEGV, Segmentation fault. > #0? event_want_debug_log (event=event at entry=0x0, > source_filename=source_filename at entry=0x7efd84178aa3 "mail-storage.c", > ??? source_linenum=source_linenum at entry=1261) at event-log.c:120 > 120???????????? if (event->forced_debug) > (gdb) bt full > #0? event_want_debug_log (event=event at entry=0x0, > source_filename=source_fi...
2020 Feb 24
2
segfault with HowToUseJIT
Hi! I've started looking porting our application which uses LLVM JIT to using LLVM 9 (9.0.1). To begin, I tried running the HowToUseJIT.cpp (example directory) program and it fails with a segfault: ./HowToUseJIT We just constructed this LLVM module: ; ModuleID = 'test' source_filename = "test" Running foo: Segmentation fault (core dumped) Running it through GDB: Program received signal SIGSEGV, Segmentation fault. 0x0000000000404912 in main () at HowToUseJIT.cc:131 131      GenericValue gv = EE->runFunction(FooF, noargs); (gdb) bt #0  0x0000000000404912 in mai...
2016 Jul 27
2
llvm-link unifies identified structs?
...e] types are never uniqued". But llvm-link seems to do just that at link-time: > cat x.ll %A = type {} %B = type {} %C = type { %A*, %B* } define void @foo(%C* %c) { ret void } > llvm-link x.ll | llvm-dis ; ModuleID = '<stdin>' source_filename = "llvm-link" %C = type { %A*, %A* } %A = type {} define void @foo(%C* %c) { ret void } Does the statement in the language reference not apply to linking? (This is with a recent 3.9). Robin -- Robin Sommer * ICSI/LBNL * robin at icir.org * www.icir.org/robi...
2017 Jun 02
10
[RFC][ThinLTO] llvm-dis ThinLTO summary dump format
Hey all, Below is the proposed format for the dump of the ThinLTO module summary in the llvm-dis utility: > ../build/bin/llvm-dis t.o && cat t.o.ll ; ModuleID = '2.o' source_filename = "2.ll" target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" @X = constant i32 42, section "foo", align 4 @a = weak alias i32, i32* @X define void @afun() { %1 = load i32, i32* @a ret void } define v...
2020 May 27
4
default behavior or
....html#floatenv it says that floating point operation does not have side effects by defaults. but when compile a test case i.e. cat a.c float foo(float a, float b) { return a+b; } $clang a.c -O2 -S -emit-llvm emit ir like: $cat a.ll --------------------------------------- ; ModuleID = 'a.c' source_filename = "a.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" ; Function Attrs: norecurse nounwind readnone uwtable define dso_local float @foo(float %a, float %b) local_unnamed_addr #0...
2019 Jun 28
2
Instcombine Creating Illegal Code? (in LLVM 7)
...all void @callee() ret void } define fastcc void @callee() { entry: %malloccall = call i8* @malloc(i64 9) store i8 0, i8* %malloccall ret void } It get's transformed into the following invalid code after the optimization (now having an illegal store): ; ModuleID = 'blarg.ll' source_filename = "blarg.ll" declare i8* @malloc(i64) define void @caller() { entry: store i1 true, i1* undef, align 1 ret void } define fastcc void @callee() { entry: ret void } Anyone seen this before and/or could shed some light on this behavior. -------------- next part -------------- An H...
2018 May 11
2
About Error: Interpreter has not been linked in
...;llvm/Support/Casting.h" #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/TargetSelect.h" #include "llvm/Support/raw_ostream.h" And here is the simple IR code that I'm trying to JIT compile and execute in memory: ; ModuleID = 'Program' source_filename = "Program" define i32 @fib(i32) { entry: %i = alloca i32 store i32 %0, i32* %i ret i32* %i } Could someone please tell the reason and how I can resolve this? Thanks for helping! Best, Aaron -------------- next part -------------- An HTML attachment was scrubbed... URL: <h...
2019 Sep 19
3
"corrupted size vs. prev_size" when calling ExecutionSession::lookup()
...:cantFail(ES.lookup({&ES.getMainJITDylib()}, Mangle("main"))); int (*entry)() = (decltype(entry)) symbol.getAddress(); std::cout << entry() << std::endl; and the "corrupted size vs. prev_size" will happen if the IR code is this: ; ModuleID = 'top' source_filename = "top" @0 = global [3 x i32] [i32 1, i32 2, i32 3] define i32 @main() { %1 = alloca i32 store i32 0, i32* %1 br label %2 ; <label>:2: ; preds = %0 %3 = load i32, i32* %1 ret i32 %3 } I put this IR code to lli, and it works fine....
2017 May 15
6
[IR question] Switching on pointers
...ter, the possible values being the addresses of various global constants. I tried to use a `switch` instruction but I encountered several problems. The "ideal switch" I'd like to have would look something like this (with way more cases): ; ModuleID = 'module' source_filename = "module" @var0 = global i32 0 @var1 = global i32 0 define i32 @func(i32*) { entry: switch i32* %0, label %unreachable [ i32* @var0, label %var0 i32* @var1, label %var1 ] var0: ; pred...
2017 Nov 17
2
Ensuring that dead allocations from a custom allocator are killed by LLVM
Hello all, I have a custom allocator, and would like to teach LLVM about its semantics. In particular, I would like LLVM to kill allocations that are "dead", similar to dead new in C++. Consider this example: ; ModuleID = '<stdin>' source_filename = "Module" ; Function Attrs: inaccessiblememonly noinline norecurse nounwind declare i8* @alloc(i64) local_unnamed_addr #0 ; Function Attrs: inaccessiblememonly noinline norecurse nounwind declare void @useClosure(i8*) local_unnamed_addr #1 ; Function Attrs: alwaysinline norecurse nou...
2017 Aug 04
2
Bug or incorrect use of inline asm?
...uot;4$0". > > LLVM appears to be optimizing the addressing mode, and the optimizer > is being more lenient on this detail so you're getting lucky when the > +4 can be combined with an existing %rsp offset. Things break down when part of the offset is a linktime constant: ``` source_filename = "asanasm.d" target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-windows-msvc" @globVar = global [2 x i32] [i32 66051, i32 66051] define void @_D7asanasm8offconstFZv() { call void asm sideeffect "movdqa 4$0, %xmm7", &q...
2017 Oct 25
3
LLVM v6.0 Internalize and GlobalDCE PASS can not work together?
...ang --version Fedora clang version 6.0.0 (trunk 316308) (based on LLVM 6.0.0svn) Target: x86_64-redhat-linux Thread model: posix InstalledDir: /opt/llvm-svn/bin $ /opt/llvm-svn/bin/clang -Xclang -disable-O0-optnone -S -emit-llvm hello.c -o hello2.ll $ cat hello2.ll ; ModuleID = 'hello.c' source_filename = "hello.c" target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" @.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1 ; Function Attrs: noinline nounwind uwtable define void @foo() #0 { entry...
2020 May 31
2
LLC crash while handling DEBUG info
Hi- Here is the simple C++ function: ----------- void foo() { } ----------- Let's say, above function is compiled to generate LLVM IR with -g flag using the command line `clang++ -g -O0 -S -emit-llvm foo.cpp`, we get below IR ----------- ; ModuleID = 'foo.cpp' source_filename = "foo.cpp" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" ; Function Attrs: noinline nounwind optnone uwtable define dso_local void @_Z3foov() #0 !dbg !7 { ret void, !dbg !10...
2018 Sep 10
2
Byte-wide stores aren't coalesced if interspersed with other stores
Hi, I have, in postres, a piece of IR that, after inlining and constant propagation boils (when cooked on really high heat) down to (also attached for your convenience): source_filename = "pg" target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" define void @evalexpr_0_0(i8* align 8 noalias, i32* align 8 noalias) { entry: %a01 = getelementptr i8, i8* %0, i16 0 store i8 0, i8* %a01 ; in the real cas...
2019 Dec 08
2
How to generate a .ll file with functions' parameter names
...a .ll with parameters name for every function. My simple c C is the following: int sum(int a, int b) { return a+b; } int main() { sum(1,2); } I obtain the .ll with the following commands: clang -emit-llvm sum.c -c llvm-dis-7 sum.bc The obtained .ll is: cat sum.ll ; ModuleID = 'sum.bc' source_filename = "sum.c" target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" ; Function Attrs: noinline nounwind optnone uwtable define i32 @sum(i32, i32) #0 { %3 = alloca i32, align 4 %4 = alloca i32, align 4 store i32 %0, i32* %...
2016 Oct 03
3
ThinLTO: module-scope inline assembly blocks
With `save-temps` as plugin option, I get extra files for the MAIN module (called `a.o`): `a.o.opt.bc` and `a.thinlto.bc`. The `a.thinlto.bc` file contains nothing, only `source_filename = ...` . The `a.o.opt.bc` (this looks like the result after ThinLTO importing and optimization) contains the assembly block that it should not have: ``` module asm "\09.text" module asm "\09.globl\09foo" module asm "\09.align\0916, 0x90" module asm "\09.type\09fo...
2019 Sep 02
3
AVX2 codegen - question reg. FMA generation
...nstruction could be used in multiple ways. I suspect I'm missing something, which I why I'm not already posting this on llvm-bugs. Is this expected behavior? ------------------------------------------------------------------------------------------- ; ModuleID = 'LLVMDialectModule' source_filename = "LLVMDialectModule" declare i8* @malloc(i64) declare void @free(i8*) define <8 x float>* @fma(<8 x float>* %0, float* %1, <8 x float>* %2) { br label %4 4: ; preds = %7, %3 %5 = phi i64 [ %19, %7 ], [ 0, %3 ] %6...
2020 May 27
2
By default clang does not emit trap insn
...case >> i.e. >> cat a.c >> float foo(float a, float b) >> { >> return a+b; >> } >> >> $clang a.c -O2 -S -emit-llvm >> emit ir like: >> $cat a.ll >> --------------------------------------- >> ; ModuleID = 'a.c' >> source_filename = "a.c" >> target datalayout = >> "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" >> target triple = "x86_64-unknown-linux-gnu" >> >> ; Function Attrs: norecurse nounwind readnone uwtable >> define dso_local...