diff options
author | Kai Nacke <kai.peter.nacke@ibm.com> | 2024-11-05 15:42:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-05 15:42:55 -0500 |
commit | 4a37799a489d80e505e3e20722570c47673476be (patch) | |
tree | e0c71c6c7cc71296b523f9db7d06015c228efeb3 /llvm/lib/CodeGen/XRayInstrumentation.cpp | |
parent | db1882e2484013066139f0b3f77d968d84a79158 (diff) | |
download | llvm-4a37799a489d80e505e3e20722570c47673476be.zip llvm-4a37799a489d80e505e3e20722570c47673476be.tar.gz llvm-4a37799a489d80e505e3e20722570c47673476be.tar.bz2 |
[SystemZ][XRay] Implement XRay instrumentation for SystemZ (#113253)
Expands pseudo instructions PATCHABLE_FUNCTION_ENTER and PATCHABLE_RET
into a small instruction sequence which calls into the XRay library.
Diffstat (limited to 'llvm/lib/CodeGen/XRayInstrumentation.cpp')
-rw-r--r-- | llvm/lib/CodeGen/XRayInstrumentation.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/XRayInstrumentation.cpp b/llvm/lib/CodeGen/XRayInstrumentation.cpp index d7cc5d5..8f718d8 100644 --- a/llvm/lib/CodeGen/XRayInstrumentation.cpp +++ b/llvm/lib/CodeGen/XRayInstrumentation.cpp @@ -241,7 +241,8 @@ bool XRayInstrumentation::runOnMachineFunction(MachineFunction &MF) { prependRetWithPatchableExit(MF, TII, op); break; } - case Triple::ArchType::ppc64le: { + case Triple::ArchType::ppc64le: + case Triple::ArchType::systemz: { // PPC has conditional returns. Turn them into branch and plain returns. InstrumentationOptions op; op.HandleTailcall = false; |