search for: mortoray

Displaying 20 results from an estimated 37 matches for "mortoray".

2018 Apr 18
4
A struct {i8,i64} has size == 12, clang says size 16
...t;     typedef struct vpt_data {         _Bool c;         long int b;     } vpt_data;     int main() {         vpt_data v;         vpt_test(v);         auto a = sizeof(v);         auto off = offsetof(vpt_data,b);     } 16 is stored to `a` and 8 to `off`. -- edA-qa mort-ora-y http://mortoray.com/ Creator of the Leaf language http://leaflang.org/ Streaming algorithms, AI, and design on Twitch https://www.twitch.tv/mortoray Twitter edaqa
2018 Apr 18
2
A struct {i8, i64} has size == 12, clang says size 16
...nt main() { >> vpt_data v; >> vpt_test(v); >> auto a = sizeof(v); >> auto off = offsetof(vpt_data,b); >> } > >> 16 is stored to `a` and 8 to `off`. >> -- >> edA-qa mort-ora-y >> http://mortoray.com/ >> Creator of the Leaf language >> http://leaflang.org/ >> Streaming algorithms, AI, and design on Twitch >> https://www.twitch.tv/mortoray >> Twitter >> edaqa > >> _____________________________...
2018 Apr 18
0
A struct {i8, i64} has size == 12, clang says size 16
...b; > } vpt_data; > int main() { > vpt_data v; > vpt_test(v); > auto a = sizeof(v); > auto off = offsetof(vpt_data,b); > } > 16 is stored to `a` and 8 to `off`. > -- > edA-qa mort-ora-y > http://mortoray.com/ > Creator of the Leaf language > http://leaflang.org/ > Streaming algorithms, AI, and design on Twitch > https://www.twitch.tv/mortoray > Twitter > edaqa > _______________________________________________ > LLVM...
2018 Apr 19
0
A struct {i8, i64} has size == 12, clang says size 16
...; >> vpt_test(v); > >> auto a = sizeof(v); > >> auto off = offsetof(vpt_data,b); > >> } > > > >> 16 is stored to `a` and 8 to `off`. > >> -- > >> edA-qa mort-ora-y > >> http://mortoray.com/ > >> Creator of the Leaf language > >> http://leaflang.org/ > >> Streaming algorithms, AI, and design on Twitch > >> https://www.twitch.tv/mortoray > >> Twitter > >> edaqa > > &gt...
2018 Mar 17
1
Migration from 3.8 to 6.0 questions (segfault most concerning)
...the legacy::PassManager. Is there a new way to do the passes now? There docs still reference `tool_output_file*`*, but it appears the new name, in the header, is `ToolOutputFile`. https://llvm.org/doxygen/classllvm_1_1tool__output__file.html -- edA-qa mort-ora-y http://mortoray.com/ Creator of the Leaf language http://leaflang.org/ Streaming algorithms, AI, and design on Twitch https://www.twitch.tv/mortoray Twitter edaqa -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org...
2018 May 05
4
Slow IR compilation/JIT, profiling points to LLVM?
...PTIMIZED_TABLEGEN=ON -DCMAKE_INSTALL_PREFIX="/opt/llvm/install" The overall time split, from valgrind, between shared libraries in my code is:     80.48%, libLLVM-6.0.so     8.83% libc-2.23.so     2.34% libleaf_lang.so (my front-end) -- edA-qa mort-ora-y http://mortoray.com/ Creator of the Leaf language http://leaflang.org/ Streaming algorithms, AI, and design on Twitch https://www.twitch.tv/mortoray Twitter edaqa
2018 Apr 19
2
How to set Target/Triple of ExecutionEngine
...le` with the generated IR code. I'm using the triple `x86_64-pc-linux-gnu`, the same as clang on the machine, but getting different alignments. I'm assuming the above is somehow not creating the correct layout. Perhaps there's an ordering issue? -- edA-qa mort-ora-y http://mortoray.com/ Creator of the Leaf language http://leaflang.org/ Streaming algorithms, AI, and design on Twitch https://www.twitch.tv/mortoray Twitter edaqa
2018 Apr 19
1
How to set Target/Triple of ExecutionEngine
...`x86_64-pc-linux-gnu`, the same as clang on the > > machine, but getting different alignments. I'm assuming the above is > > somehow not creating the correct layout. Perhaps there's an ordering > issue? > > > > -- > edA-qa mort-ora-y > http://mortoray.com/ > > Creator of the Leaf language > http://leaflang.org/ > > Streaming algorithms, AI, and design on Twitch > https://www.twitch.tv/mortoray > > Twitter > edaqa > > > ________________________________________...
2018 May 05
0
Slow IR compilation/JIT, profiling points to LLVM?
...t/llvm/install" > > > The overall time split, from valgrind, between shared libraries in my > code is: > > 80.48%, libLLVM-6.0.so > 8.83% libc-2.23.so > 2.34% libleaf_lang.so (my front-end) > > -- > edA-qa mort-ora-y > http://mortoray.com/ > > Creator of the Leaf language > http://leaflang.org/ > > Streaming algorithms, AI, and design on Twitch > https://www.twitch.tv/mortoray > > Twitter > edaqa > > > > _______________________________________________ &g...
2018 May 05
2
Slow IR compilation/JIT, profiling points to LLVM?
...without the assertions? That's what I'm assuming I need the flag for (it's been a long time since I experimented with it) If there is no way I guess I'll have to produce two versions of LLVM.  I still commonly get type errors in my LLVM IR. -- edA-qa mort-ora-y http://mortoray.com/ Creator of the Leaf language http://leaflang.org/ Streaming algorithms, AI, and design on Twitch https://www.twitch.tv/mortoray Twitter edaqa
2018 Apr 18
3
Why does clang do a memcpy? Is the cast not enough? (ABI function args)
...___________________________ >>>> LLVM Developers mailing list >>>> llvm-dev at lists.llvm.org >>>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >>>> >>> >> > -- edA-qa mort-ora-y http://mortoray.com/ Creator of the Leaf language http://leaflang.org/ Streaming algorithms, AI, and design on Twitch https://www.twitch.tv/mortoray Twitter edaqa
2018 Apr 19
0
How to set Target/Triple of ExecutionEngine
...R code. > > I'm using the triple `x86_64-pc-linux-gnu`, the same as clang on the > machine, but getting different alignments. I'm assuming the above is > somehow not creating the correct layout. Perhaps there's an ordering issue? > -- edA-qa mort-ora-y http://mortoray.com/ Creator of the Leaf language http://leaflang.org/ Streaming algorithms, AI, and design on Twitch https://www.twitch.tv/mortoray Twitter edaqa
2013 Nov 23
0
[LLVMdev] "Mapping High-Level Constructs to LLVM IR"
On 11/23/2013 12:18 AM, Mikael Lyngvig wrote: > Thanks, you have a lot of valid points there. I have myself long ago > abandoned the path of using C as a backend language due to the very > factors you mention. > > However, as I said, the document was put together in 30 minutes. Not > exactly ready for prime time :-) > > I do agree that all of the things you
2018 Apr 19
0
Why does clang do a memcpy? Is the cast not enough? (ABI function args)
...elopers mailing list > >>>> llvm-dev at lists.llvm.org > >>>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > >>>> > >>> > >> > > > > -- > edA-qa mort-ora-y > http://mortoray.com/ > > Creator of the Leaf language > http://leaflang.org/ > > Streaming algorithms, AI, and design on Twitch > https://www.twitch.tv/mortoray > > Twitter > edaqa > > > ________________________________________...
2018 Apr 18
2
Why does clang do a memcpy? Is the cast not enough? (ABI function args)
...4, float }* %1, i32 0, i32 0       %5 = load i64, i64* %4, align 4       %6 = getelementptr inbounds { i64, float }, { i64, float }* %1, i32 0, i32 1       %7 = load float, float* %6, align 4       call void @vpt_test(i64 %5, float %7)       ret i32 0     } -- edA-qa mort-ora-y http://mortoray.com/ Creator of the Leaf language http://leaflang.org/ Streaming algorithms, AI, and design on Twitch https://www.twitch.tv/mortoray Twitter edaqa
2018 Apr 22
2
Difference between "byval" and actually passing by value?
...ter:     call void @foo(%some_struct* byval %v) They are not compatible with each other yet logically do the same thing.  The second form is the one that appears to work with the ABI on linux, and the first one not. What is the reason for the difference? -- edA-qa mort-ora-y http://mortoray.com/ Creator of the Leaf language http://leaflang.org/ Streaming algorithms, AI, and design on Twitch https://www.twitch.tv/mortoray Twitter edaqa
2018 Apr 18
2
Why does clang do a memcpy? Is the cast not enough? (ABI function args)
...u are passing the parameter by value? It *should* copy the > data. In this particular case it will probably be elided if you turn on > optimization, but it is more logical to pass structs via a const > reference or pointer. > > -Dimitry > -- edA-qa mort-ora-y http://mortoray.com/ Creator of the Leaf language http://leaflang.org/ Streaming algorithms, AI, and design on Twitch https://www.twitch.tv/mortoray Twitter edaqa -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: applicatio...
2016 Jul 03
2
clib `open` writes a linefeed to stdout when used in the JIT
...open(i8* %60, i32 577, i32 511) store i32 %61, i32* %f8686688__f br label %defer_block_25 Where elsewhere I have `declare i32 @open(i8*, i32, i32)`. Any ideas on what could possible be causing this? I'm using LLVM3.8 with GCC 5.3.1 on Ubuntu 16.04. -- edA-qa mort-ora-y http://mortoray.com/ Leaf - the language we always wanted http://leaflang.org/
2018 Apr 18
2
Why does clang do a memcpy? Is the cast not enough? (ABI function args)
...t;> >> >> >> _______________________________________________ >> LLVM Developers mailing list >> llvm-dev at lists.llvm.org >> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >> > -- edA-qa mort-ora-y http://mortoray.com/ Creator of the Leaf language http://leaflang.org/ Streaming algorithms, AI, and design on Twitch https://www.twitch.tv/mortoray Twitter edaqa
2016 Jun 11
3
SegFault creating a ExecutionEngine
...gen.cpp:252 #10 0x000000000041736b in runner::execute (this=this at entry=0x7fffffffdbc0, m=std::shared_ptr (count 2, weak 0) 0x682200) at src/bin/leaf.cpp:544 #11 0x0000000000415ac8 in main (argc=3, argv=0x7fffffffdde8) at src/bin/leaf.cpp:265 -- edA-qa mort-ora-y http://mortoray.com/ Leaf - the language we always wanted http://leaflang.org/