search for: mainfnptr

Displaying 4 results from an estimated 4 matches for "mainfnptr".

2020 May 23
4
Assertion triggered when running simple hello-world code on iOS device using ORC/LLLazyJIT
...ich I then add the module like this: // Add the main module. ExitOnErr(J->addLazyIRModule(orc::ThreadSafeModule(std::move(MainModule), TSCtx))); Finally the module is executed like this: // Run main. auto MainSym = ExitOnErr(J->lookup("main")); typedef int (*MainFnPtr)(int, char *[]); auto Result = orc::runAsMain( jitTargetAddressToFunction<MainFnPtr>(MainSym.getAddress()), Args, StringRef("lli")); The Xcode halts the execution when an assertion is triggered in llvm::jitlink::Symbol::constructNamedDef (the full call stack is below). The...
2020 Jun 06
4
Assertion triggered when running simple hello-world code on iOS device using ORC/LLLazyJIT
...;>>> Finally the module is executed like this: >>>>> >>>>> // Run main. >>>>> >>>>> auto MainSym = ExitOnErr(J->lookup("main")); >>>>> >>>>> >>>>> typedef int (*MainFnPtr)(int, char *[]); >>>>> >>>>> auto Result = orc::runAsMain( >>>>> >>>>> jitTargetAddressToFunction<MainFnPtr>(MainSym.getAddress()), Args, >>>>> >>>>> StringRef("lli")); >>>>>...
2020 Jun 20
1
Assertion triggered when running simple hello-world code on iOS device using ORC/LLLazyJIT
...gt; >>>>>>> // Run main. > >>>>>>> > >>>>>>> auto MainSym = ExitOnErr(J->lookup("main")); > >>>>>>> > >>>>>>> > >>>>>>> typedef int (*MainFnPtr)(int, char *[]); > >>>>>>> > >>>>>>> auto Result = orc::runAsMain( > >>>>>>> > >>>>>>> jitTargetAddressToFunction<MainFnPtr>(MainSym.getAddress()), Args, > >>>>>>> >...
2016 May 04
2
OrcLazyJIT for windows
Hi David, This is really cool. I'd love to get this in-tree. There are two ways we could go about this: (1) Make the OrcArchitecture interface ABI-aware so that it can choose the right resolver code, or (2) Replace the OrcArchitecture classes with OrcABI classes. I.e. We'd just a rename OrcX86_64 -> Orc_X86_64_SysV (and rename I386 & AArch64 similarly) , then we add your code as