This seems to be more of a Clang thing rather than a generic LLVM thing, so this moves it out of LLVM pipelines and as Clang extension hooks into LLVM pipelines. Move the post-inline EEInstrumentation out of the backend pipeline and into a late pass, similar to other sanitizer passes. It doesn't fit into the codegen pipeline. Also fix up EntryExitInstrumentation not running at -O0 under the new PM. PR49143 Reviewed By: hans Differential Revision: https://reviews.llvm.org/D97608
20 lines
625 B
LLVM
20 lines
625 B
LLVM
; Check call to mcount in case of long/short call options.
|
|
; RUN: llc -march=mips -target-abi o32 --mattr=+long-calls,+noabicalls < %s \
|
|
; RUN: -mips-jalr-reloc=false | FileCheck -check-prefixes=CHECK,LONG %s
|
|
; RUN: llc -march=mips -target-abi o32 --mattr=-long-calls,+noabicalls < %s \
|
|
; RUN: -mips-jalr-reloc=false | FileCheck -check-prefixes=CHECK,SHORT %s
|
|
|
|
define void @foo() {
|
|
entry:
|
|
call void @_mcount()
|
|
ret void
|
|
|
|
; CHECK-LABEL: foo
|
|
; LONG: lui $1, %hi(_mcount)
|
|
; LONG-NEXT: addiu $25, $1, %lo(_mcount)
|
|
; LONG-NEXT: jalr $25
|
|
; SHORT: jal _mcount
|
|
}
|
|
|
|
declare void @_mcount()
|