Displaying 8 results from an estimated 8 matches for "invoke_main".
2013 Sep 28
1
[LLVMdev] use function address as global variable initializer
...instruction in LLVM needs to be created with an insertion
point. what should be the insertion point of this bitcast instruction.
also, do i just give the LLVM main Function* to the bitcast instruction as
its value ?
I am new to LLVM. please help.
Thank you,
Trent
i.e.
* C code *
typedef int (*INVOKE_MAIN)(void);
int main();
void *main_ptr = main;
int main()
{
((INVOKE_MAIN)(main_ptr))();
return 0;
}
*generated LLVM code*
@main_ptr = global i8* bitcast (i32 ()* @main to i8*), align 8
; Function Attrs: nounwind uwtable
define i32 @main() #0 {
entry:
%retval = alloca i32, align 4
stor...
2020 Jan 06
2
clang interpreter failed to materialize symbols
...5 byte(s)
0x00007FF68DEE4200 (0x0000000000000002 0x000001AF8A5515B0 0x000001AF8A532460 0x00007FF6909C0A7D), main() + 0x1D10 bytes(s), C:\dev\llvm-project\llvm\tools\lli\lli.cpp, line 614 + 0x4D byte(s)
0x00007FF6909C1A29 (0x00007FF690C2C000 0x00007FF690C2FE30 0x0000000000000000 0x0000000000000000), invoke_main() + 0x39 bytes(s), d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl, line 79
0x00007FF6909C190E (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), __scrt_common_main_seh() + 0x12E bytes(s), d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\e...
2020 Jan 14
4
clang interpreter failed to materialize symbols
...0000002 0x000001AF8A5515B0
> 0x000001AF8A532460 0x00007FF6909C0A7D), main() + 0x1D10 bytes(s),
> C:\dev\llvm-project\llvm\tools\lli\lli.cpp, line 614 + 0x4D byte(s)
>
> 0x00007FF6909C1A29 (0x00007FF690C2C000 0x00007FF690C2FE30
> 0x0000000000000000 0x0000000000000000), invoke_main() + 0x39
> bytes(s),
> d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl,
> line 79
>
> 0x00007FF6909C190E (0x0000000000000000 0x0000000000000000
> 0x0000000000000000 0x0000000000000000), __scrt_common_main_seh() +
> 0x12E bytes(s),...
2020 Jan 16
2
clang interpreter failed to materialize symbols
...byte(s)
0x00007FF68DEE4200 (0x0000000000000002 0x000001AF8A5515B0 0x000001AF8A532460 0x00007FF6909C0A7D), main() + 0x1D10 bytes(s), C:\dev\llvm-project\llvm\tools\lli\lli.cpp, line 614 + 0x4D byte(s)
0x00007FF6909C1A29 (0x00007FF690C2C000 0x00007FF690C2FE30 0x0000000000000000 0x0000000000000000), invoke_main() + 0x39 bytes(s), d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl, line 79
0x00007FF6909C190E (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), __scrt_common_main_seh() + 0x12E bytes(s), d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\...
2018 Mar 20
2
lld/lto/win32 crash on DIE code
...rayRef<char const *>
ArgsArr) Line 1366 C++ Symbols loaded.
lld.exe!lld::coff::link(llvm::ArrayRef<char const *> Args, bool
CanExitEarly, llvm::raw_ostream & Diag) Line 75 C++ Symbols loaded.
lld.exe!main(int Argc, const char * * Argv) Line 129 C++ Symbols loaded.
lld.exe!invoke_main() Line 78 C++ Symbols loaded.
lld.exe!__scrt_common_main_seh() Line 283 C++ Symbols loaded.
lld.exe!__scrt_common_main() Line 326 C++ Symbols loaded.
lld.exe!mainCRTStartup() Line 17 C++ Symbols loaded.
kernel32.dll!75568654() Unknown No symbols loaded.
[Frames below may be incorrect...
2018 Mar 20
0
lld/lto/win32 crash on DIE code
This one triggers an assertion in calculateSEHStateNumbers due to weird catchpad instruction
in @_island_debug_invoke and many other functions. The code expects either pointer to a filter
function or null in first operand, while you're passing pointer to structure:
catchpad within %80 [{i8*, i8*}* anon..., ...]
________________________________________
От: Carlo Kok <ck at
2018 Mar 21
0
lld/lto/win32 crash on DIE code
...r) Line 1366 C++ Symbols loaded.
lld.exe!lld::coff::link(llvm::ArrayRef<char const *> Args, bool
CanExitEarly, llvm::raw_ostream & Diag) Line 75 C++ Symbols loaded.
lld.exe!main(int Argc, const char * * Argv) Line 129 C++ Symbols loaded.
lld.exe!invoke_main() Line 78 C++ Symbols loaded.
lld.exe!__scrt_common_main_seh() Line 283 C++ Symbols loaded.
lld.exe!__scrt_common_main() Line 326 C++ Symbols loaded.
lld.exe!mainCRTStartup() Line 17 C++ Symbols loaded.
kernel32.dll!75568654() Unknown...
2018 Mar 20
2
lld/lto/win32 crash on DIE code
Op 16-3-2018 om 20:16 schreef Evgeny Leviant:
> Hello Carlo,
>
> I tried your reproducer and faced different problem from one you described
> (I'm using MacOS Sierra and lld built from trunk on Mar, 15). The crash happens
> when SelectionDAGBuilder::lowerInvokable tries to access EH info of this function:
>
>