search for: terminatorfunc

Displaying 2 results from an estimated 2 matches for "terminatorfunc".

2019 Jul 17
2
Custom calling convention & ARM target
...tion so it replaced all calls between handlers to just branches. Now getting back to the problem, note that the handlers call to 'puts' so LR register gets changed. See https://gist.github.com/amitin/7df4fbb806c0b48eb5bcaf614e5d93cd#file-test-s-L31 Thus, when the execution flow reaches 'terminatorFunc' it will branch to an unknown location. See https://gist.github.com/amitin/7df4fbb806c0b48eb5bcaf614e5d93cd#file-test-s-L73 The same IR code works fine for x86_64. You can verify it by changing the triple to x86_64 (uncomment the test.ll:5 line and comment test.ll:4 then compile it with llc)....
2019 Jul 16
2
Custom calling convention & ARM target
Hello. For our project needs we implemented a custom calling convention. The main goals are to pass function arguments in registers and always use tailcall optimization for calls to functions with our CC when applicable. Function arguments are always pointers and the maximum number of arguments is 5. No frame pointer register is in use for this CC. No varargs. Finally, there are not any