|
|
@ -1846,9 +1846,9 @@ func (b *builder) createFunctionCall(instr *ssa.CallCommon) (llvm.Value, error) |
|
|
|
return b.emitSV64Call(instr.Args, getPos(instr)) |
|
|
|
case strings.HasPrefix(name, "(device/riscv.CSR)."): |
|
|
|
return b.emitCSROperation(instr) |
|
|
|
case strings.HasPrefix(name, "syscall.Syscall") || strings.HasPrefix(name, "syscall.RawSyscall") || strings.HasPrefix(name, "Syscall") || strings.HasPrefix(name, "golang.org/x/sys/unix.Syscall"): |
|
|
|
case strings.HasPrefix(name, "syscall.Syscall") || strings.HasPrefix(name, "syscall.RawSyscall") || strings.HasPrefix(name, "golang.org/x/sys/unix.Syscall") || strings.HasPrefix(name, "golang.org/x/sys/unix.RawSyscall"): |
|
|
|
return b.createSyscall(instr) |
|
|
|
case strings.HasPrefix(name, "syscall.rawSyscallNoError"): |
|
|
|
case strings.HasPrefix(name, "syscall.rawSyscallNoError") || strings.HasPrefix(name, "golang.org/x/sys/unix.RawSyscallNoError"): |
|
|
|
return b.createRawSyscallNoError(instr) |
|
|
|
case name == "runtime.supportsRecover": |
|
|
|
supportsRecover := uint64(0) |
|
|
|