[llvm] 2ed16aa - [X86] Use TargetConstant instead of Constant for operands to X86vaarg64.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 25 17:22:00 PDT 2020
Author: Craig Topper
Date: 2020-10-25T12:24:59-07:00
New Revision: 2ed16aa66f706ea565d1238e4fa6f7ae97c7d948
URL: https://github.com/llvm/llvm-project/commit/2ed16aa66f706ea565d1238e4fa6f7ae97c7d948
DIFF: https://github.com/llvm/llvm-project/commit/2ed16aa66f706ea565d1238e4fa6f7ae97c7d948.diff
LOG: [X86] Use TargetConstant instead of Constant for operands to X86vaarg64.
Added:
Modified:
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/lib/Target/X86/X86InstrCompiler.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 39eab5b1d502..b8331070ea32 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -24294,9 +24294,10 @@ SDValue X86TargetLowering::LowerVAARG(SDValue Op, SelectionDAG &DAG) const {
// Insert VAARG_64 node into the DAG
// VAARG_64 returns two values: Variable Argument Address, Chain
- SDValue InstOps[] = {Chain, SrcPtr, DAG.getConstant(ArgSize, dl, MVT::i32),
- DAG.getConstant(ArgMode, dl, MVT::i8),
- DAG.getConstant(Align, dl, MVT::i32)};
+ SDValue InstOps[] = {Chain, SrcPtr,
+ DAG.getTargetConstant(ArgSize, dl, MVT::i32),
+ DAG.getTargetConstant(ArgMode, dl, MVT::i8),
+ DAG.getTargetConstant(Align, dl, MVT::i32)};
SDVTList VTs = DAG.getVTList(getPointerTy(DAG.getDataLayout()), MVT::Other);
SDValue VAARG = DAG.getMemIntrinsicNode(
X86ISD::VAARG_64, dl, VTs, InstOps, MVT::i64, MachinePointerInfo(SV),
diff --git a/llvm/lib/Target/X86/X86InstrCompiler.td b/llvm/lib/Target/X86/X86InstrCompiler.td
index fc5bd67ea9aa..83d1d7a17d8d 100644
--- a/llvm/lib/Target/X86/X86InstrCompiler.td
+++ b/llvm/lib/Target/X86/X86InstrCompiler.td
@@ -89,7 +89,7 @@ def VAARG_64 : I<0, Pseudo,
(ins i8mem:$ap, i32imm:$size, i8imm:$mode, i32imm:$align),
"#VAARG_64 $dst, $ap, $size, $mode, $align",
[(set GR64:$dst,
- (X86vaarg64 addr:$ap, imm:$size, imm:$mode, imm:$align)),
+ (X86vaarg64 addr:$ap, timm:$size, timm:$mode, timm:$align)),
(implicit EFLAGS)]>;
More information about the llvm-commits
mailing list