aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2019-02-03 00:07:33 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2019-02-03 00:07:33 +0000
commitc1923fc6c2fe07742f6f65362e0daab0cf1b71f3 (patch)
tree5bf4484c518951e7c6c3693ea81b97578422407e /include/llvm/CodeGen
parent757bd101c78fff13b00870638a64c3800a237282 (diff)
downloadllvm-c1923fc6c2fe07742f6f65362e0daab0cf1b71f3.tar.gz
GlobalISel: Implement widenScalar for G_UNMERGE_VALUES
For the scalar case only. Also move the similar G_MERGE_VALUES handling to a separate function and cleanup to make them look more similar. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352979 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r--include/llvm/CodeGen/GlobalISel/LegalizerHelper.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h b/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
index 5335884ae93..c0874124a15 100644
--- a/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
+++ b/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
@@ -119,6 +119,10 @@ private:
// extending back with \p ExtOpcode.
void narrowScalarDst(MachineInstr &MI, LLT NarrowTy, unsigned OpIdx,
unsigned ExtOpcode);
+ LegalizeResult
+ widenScalarMergeValues(MachineInstr &MI, unsigned TypeIdx, LLT WideTy);
+ LegalizeResult
+ widenScalarUnmergeValues(MachineInstr &MI, unsigned TypeIdx, LLT WideTy);
/// Helper function to split a wide generic register into bitwise blocks with
/// the given Type (which implies the number of blocks needed). The generic