aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp
diff options
context:
space:
mode:
authorDiana Picus <Diana-Magda.Picus@amd.com>2023-07-27 11:10:02 +0200
committerDiana Picus <Diana-Magda.Picus@amd.com>2023-08-21 12:37:32 +0200
commit5272ae667dd5c628689097687f4679a8be29bc4d (patch)
treee07e114d4804975ba23475cd548265e9edd24f57 /llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp
parent8ce23b8e5c91c530d25c13f97b6f4cbacfe34b3c (diff)
downloadllvm-5272ae667dd5c628689097687f4679a8be29bc4d.zip
llvm-5272ae667dd5c628689097687f4679a8be29bc4d.tar.gz
llvm-5272ae667dd5c628689097687f4679a8be29bc4d.tar.bz2
[AMDGPU] Add IsChainFunction to the MachineFunctionInfo
This will represent functions with the amdgpu_cs_chain or amdgpu_cs_chain_preserve calling conventions. Differential Revision: https://reviews.llvm.org/D156410
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp')
-rw-r--r--llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp b/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp
index 44bbfe6..323462e 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp
@@ -24,6 +24,7 @@ AMDGPUMachineFunction::AMDGPUMachineFunction(const Function &F,
: IsEntryFunction(AMDGPU::isEntryFunctionCC(F.getCallingConv())),
IsModuleEntryFunction(
AMDGPU::isModuleEntryFunctionCC(F.getCallingConv())),
+ IsChainFunction(AMDGPU::isChainCC(F.getCallingConv())),
NoSignedZerosFPMath(false) {
// FIXME: Should initialize KernArgSize based on ExplicitKernelArgOffset,