summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetLoweringBase.cpp
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-10-23 00:44:24 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-10-23 00:44:24 +0000
commit8d7d4deafe1fbb2a26be821eaa0ae7cb8fae8a0b (patch)
tree1e9ff3505ea9683c708e11b568ce06429fbf9299 /llvm/lib/CodeGen/TargetLoweringBase.cpp
parentfb9616905a663d8b5e4ab3b7afacfb0f04476264 (diff)
downloadbcm5719-llvm-8d7d4deafe1fbb2a26be821eaa0ae7cb8fae8a0b.tar.gz
bcm5719-llvm-8d7d4deafe1fbb2a26be821eaa0ae7cb8fae8a0b.zip
SelectionDAG: Pass along the original argument/element type in ISD::InputArg
For some targets, it is useful to be able to look at the original type of an argument without having to dig through the original IR. This also fixes a bug in SelectionDAGBuilder where InputArg.PartOffset was not taking into account the offset of structure elements. Patch by: Justin Holewinski Tom Stellard: - Changed the type of ArgVT to EVT, so it can store non-simple types like v3i32. llvm-svn: 193214
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringBase.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp
index e770942c98e..bfed53e07e3 100644
--- a/llvm/lib/CodeGen/TargetLoweringBase.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp
@@ -1202,7 +1202,7 @@ void llvm::GetReturnInfo(Type* ReturnType, AttributeSet attr,
Flags.setZExt();
for (unsigned i = 0; i < NumParts; ++i)
- Outs.push_back(ISD::OutputArg(Flags, PartVT, /*isFixed=*/true, 0, 0));
+ Outs.push_back(ISD::OutputArg(Flags, PartVT, VT, /*isFixed=*/true, 0, 0));
}
}
OpenPOWER on IntegriCloud