search for: laneve

Displaying 20 results from an estimated 48 matches for "laneve".

2016 Mar 24
2
Help with pass manager
So we come back to my earlier comment: can you produce a one-file, < 100 lines that reproduce the issue? -- Mehdi > On Mar 24, 2016, at 10:16 AM, Lorenzo Laneve <lore97drk at icloud.com> wrote: > > Those lines of code are in a function that is called before calling the moduleToObjectFile() function > > On Mar 24, 2016, at 6:07 PM, Mehdi Amini <mehdi.amini at apple.com <mailto:mehdi.amini at apple.com>> wrote: > >>...
2016 Mar 24
2
Help with pass manager
...egistry = PassRegistry::getPassRegistry(); initializeCore(*Registry); initializeCodeGen(*Registry); initializeLoopStrengthReducePass(*Registry); initializeLowerIntrinsicsPass(*Registry); initializeUnreachableBlockElimPass(*Registry); -- Mehdi > On Mar 24, 2016, at 9:59 AM, Lorenzo Laneve <lore97drk at icloud.com> wrote: > > Update: > Sorry my bad. I built llvm and tried it with debugging version. > It was an assertion (IR/LegacyPassManager.cpp:764) saying that it expects all immutable passes to be initialized. > > On Mar 24, 2016, at 2:00 AM, Lorenzo Lanev...
2016 Mar 30
1
Help with pass manager
Passes all need to be initialized before they are added into a pass manager. Are you calling TargetLibraryInfoWrapperPass::initializePass anywhere? -Chris > On Mar 24, 2016, at 10:41 AM, Lorenzo Laneve via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > The problems happens because PMTopLevelManager::findAnalysisPassInfo(AnalysisID AID) returns nullptr in PMTopLevelManager::addImmutablePass(ImmutablePass *P). > This because PassRegistry::getPassRegistry()->getPassInfo(AID) cal...
2016 Mar 24
0
Help with pass manager
...16, at 6:21 PM, Mehdi Amini <mehdi.amini at apple.com <mailto:mehdi.amini at apple.com>> wrote: > So we come back to my earlier comment: can you produce a one-file, < 100 lines that reproduce the issue? > > -- > Mehdi > >> On Mar 24, 2016, at 10:16 AM, Lorenzo Laneve <lore97drk at icloud.com <mailto:lore97drk at icloud.com>> wrote: >> >> Those lines of code are in a function that is called before calling the moduleToObjectFile() function >> >> On Mar 24, 2016, at 6:07 PM, Mehdi Amini <mehdi.amini at apple.com <mailto:...
2016 Mar 24
0
Help with pass manager
...(*Registry); > initializeCodeGen(*Registry); > initializeLoopStrengthReducePass(*Registry); > initializeLowerIntrinsicsPass(*Registry); > initializeUnreachableBlockElimPass(*Registry); > > > -- > Mehdi > > > >> On Mar 24, 2016, at 9:59 AM, Lorenzo Laneve <lore97drk at icloud.com> wrote: >> >> Update: >> Sorry my bad. I built llvm and tried it with debugging version. >> It was an assertion (IR/LegacyPassManager.cpp:764) saying that it expects all immutable passes to be initialized. >> >>> On Mar 24, 201...
2016 Mar 24
2
Help with pass manager
.... Did you build LLVM yourself? Which version are you using and can you reduce the test case to be "minimal" so that someone can reproduce? > (for instance you don't need a module to create a pass manager) > > -- > Mehdi > >> On Mar 23, 2016, at 5:50 PM, Lorenzo Laneve <lore97drk at icloud.com <mailto:lore97drk at icloud.com>> wrote: >> >> Sorry, that's a pure crash I think, assertions are not triggered. >> Xcode doesn’t map those 2 functions to line numbers because they’re in precompiled libraries >> >> >> O...
2016 Mar 24
0
Help with pass manager
Update: Sorry my bad. I built llvm and tried it with debugging version. It was an assertion (IR/LegacyPassManager.cpp:764) saying that it expects all immutable passes to be initialized. > On Mar 24, 2016, at 2:00 AM, Lorenzo Laneve <lore97drk at icloud.com> wrote: > > I’m using LLVM 3.8.0, and no, it’s the precompiled version > That’s why it doesn’t give me enough info for debug > >> On 24 Mar 2016, at 1:53 AM, Mehdi Amini <mehdi.amini at apple.com> wrote: >> >> This code path is n...
2016 Mar 20
2
Need help with code generation
...I have two years of experience in writing my own LLVM frontend, and I guarantee that optimising string output is dead easy to do "later". Getting the compiler to deal with some of the more complex parts of whatever language it is will not be... -- Mats On 20 March 2016 at 12:34, Lorenzo Laneve <lore97drk at icloud.com> wrote: > My goal is a complete and independent compiler for a new, safe and > portable programming language. > I read the code you put the link of earlier, but I still don't get it. If > I link against that library will that main function included an...
2016 Mar 19
3
Need help with code generation
...0, i64 0)) > ret i32 0 > } > ---------------- > > $ clang hello.ll -o hello && ./hello > warning: overriding the module target triple with x86_64-apple-macosx10.10.0 > 1 warning generated. > Hello World > > >> On Sat, Mar 19, 2016 at 3:03 AM, Lorenzo Laneve via llvm-dev <llvm-dev at lists.llvm.org> wrote: >> I wrote my compiler and now it generates LLVM IR modules. Now i’d like to go ahead and make object file and then executable, just like clang does. >> >> What should I have to use to create the object files? and then how do...
2016 Jul 19
5
A "Java Backend"
My idea was to create a complete backend treating Java as a normal platform, to enable LLVM to compile programs to Java Bytecode (.class) and Java Archive files (.jar). This could be useful in situations where we need to compile a program for a platform still not natively supported by LLVM. I don't know if it exists already, I've heard about this "LLJVM" but I don't think it
2016 Mar 24
2
Help with pass manager
...assertions are not triggered. Xcode doesn’t map those 2 functions to line numbers because they’re in precompiled libraries On Mar 24, 2016, at 1:44 AM, Mehdi Amini <mehdi.amini at apple.com <mailto:mehdi.amini at apple.com>> wrote: > >> On Mar 23, 2016, at 5:41 PM, Lorenzo Laneve <lore97drk at icloud.com <mailto:lore97drk at icloud.com>> wrote: >> >> The stack trace: >> llvm::PMTopLevelManager::addImmutablePass(llvm::ImmutablePass*) >> llvm::PMTopLevelManager::schedulePass(llvm::Pass*) >> moduleToObjectFile(llvm::Module*,std::strin...
2016 May 23
3
A "Cross-Platform Runtime Library API" in LLVM IR
On 23 May 2016, at 12:00, Lorenzo Laneve <lore97drk at icloud.com> wrote: > > This is the point, No, you are still failing to make a point. > High-level OO languages don't use malloc(), they use something else. That’s not entirely true. They need to get the memory that they provide to programs from somewhere. They...
2016 Mar 24
0
Help with pass manager
...s not likely to crash usually. Did you build LLVM yourself? Which version are you using and can you reduce the test case to be "minimal" so that someone can reproduce? (for instance you don't need a module to create a pass manager) -- Mehdi > On Mar 23, 2016, at 5:50 PM, Lorenzo Laneve <lore97drk at icloud.com> wrote: > > Sorry, that's a pure crash I think, assertions are not triggered. > Xcode doesn’t map those 2 functions to line numbers because they’re in precompiled libraries > > > On Mar 24, 2016, at 1:44 AM, Mehdi Amini <mehdi.amini at appl...
2016 Mar 21
2
Need help with code generation
...> this is is an explicit non-goal, which really surprised me. Is that indeed > the case? > You can use LLD as a library. https://github.com/llvm-mirror/lld/blob/master/docs/NewLLD.rst#the-elf-linker-as-a-library > Cheers, > > James > > On Sat, 19 Mar 2016 at 13:32 Lorenzo Laneve via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> I'd like to make my compiler independent, just like Clang. Doesn't Clang >> call llc and then system's ld by itself? I don't want my compiler to depend >> by any other program. >> I guess th...
2016 May 23
3
A "Cross-Platform Runtime Library API" in LLVM IR
On 23 May 2016, at 12:16, Lorenzo Laneve <lore97drk at icloud.com> wrote: > > I'm not talking about a new library instead of the libc, I'm talking about letting people create a library optimized for a specific frontend, regardless of the target. It sounded as if you were talking about a library that sits underneath s...
2016 Mar 19
2
Need help with code generation
...d line right can be quite > difficult. > > Rafael, This would be a good usecase for LLD as a library. I heard that > this is is an explicit non-goal, which really surprised me. Is that indeed > the case? > > Cheers, > > James > > On Sat, 19 Mar 2016 at 13:32 Lorenzo Laneve via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> I'd like to make my compiler independent, just like Clang. Doesn't Clang >> call llc and then system's ld by itself? I don't want my compiler to depend >> by any other program. >> I guess th...
2016 May 23
0
A "Cross-Platform Runtime Library API" in LLVM IR
...bout a new library instead of the libc, I'm talking about letting people create a library optimized for a specific frontend, regardless of the target. > On May 23, 2016, at 1:06 PM, David Chisnall <David.Chisnall at cl.cam.ac.uk> wrote: > >> On 23 May 2016, at 12:00, Lorenzo Laneve <lore97drk at icloud.com> wrote: >> >> This is the point, > > No, you are still failing to make a point. > >> High-level OO languages don't use malloc(), they use something else. > > That’s not entirely true. They need to get the memory that they prov...
2016 May 23
3
A "Cross-Platform Runtime Library API" in LLVM IR
On 23 May 2016, at 10:13, Lorenzo Laneve <lore97drk at icloud.com> wrote: > > I know but maybe malloc() is a bit higher level than a hypothetical __alloc(), which may be lower-level and then faster. How? > And malloc() is contained in the libc as Matthias said and so maybe a program using malloc() even for a non-C langua...
2016 May 23
3
A "Cross-Platform Runtime Library API" in LLVM IR
...erent languages have different semantics for the DETAILS of how you do certain things (error handling could be throwing exceptions, returning error codes, aborting the execution - or some combination thereof based on compiler or language pragma, etc, etc). -- Mats On 23 May 2016 at 12:35, Lorenzo Laneve <lore97drk at icloud.com> wrote: > You guys are saying that the library which defines the runtime library is > written in C for many languages. > The problem is that such functions are in the libc and so the object files > have to be linked against the **entire** libc. > Sorry...
2016 Mar 21
3
Need help with code generation
...>> >> >> You can use LLD as a library. >> >> https://github.com/llvm-mirror/lld/blob/master/docs/NewLLD.rst#the-elf-linker-as-a-library >> >> >>> Cheers, >>> >>> James >>> >>> On Sat, 19 Mar 2016 at 13:32 Lorenzo Laneve via llvm-dev < >>> llvm-dev at lists.llvm.org> wrote: >>> >>>> I'd like to make my compiler independent, just like Clang. Doesn't >>>> Clang call llc and then system's ld by itself? I don't want my compiler to >>>> depend b...