mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
move static function out of anon namespace, no functionality change.
llvm-svn: 50330
This commit is contained in:
parent
113de6b3a8
commit
459f6ed05c
@ -89,12 +89,10 @@ namespace {
|
|||||||
|
|
||||||
namespace { struct SDISelAsmOperandInfo; }
|
namespace { struct SDISelAsmOperandInfo; }
|
||||||
|
|
||||||
namespace {
|
|
||||||
/// ComputeValueVTs - Given an LLVM IR type, compute a sequence of
|
/// ComputeValueVTs - Given an LLVM IR type, compute a sequence of
|
||||||
/// MVT::ValueTypes that represent all the individual underlying
|
/// MVT::ValueTypes that represent all the individual underlying
|
||||||
/// non-aggregate types that comprise it.
|
/// non-aggregate types that comprise it.
|
||||||
static void ComputeValueVTs(const TargetLowering &TLI,
|
static void ComputeValueVTs(const TargetLowering &TLI, const Type *Ty,
|
||||||
const Type *Ty,
|
|
||||||
SmallVectorImpl<MVT::ValueType> &ValueVTs) {
|
SmallVectorImpl<MVT::ValueType> &ValueVTs) {
|
||||||
// Given a struct type, recursively traverse the elements.
|
// Given a struct type, recursively traverse the elements.
|
||||||
if (const StructType *STy = dyn_cast<StructType>(Ty)) {
|
if (const StructType *STy = dyn_cast<StructType>(Ty)) {
|
||||||
@ -112,10 +110,10 @@ namespace {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Base case: we can get an MVT::ValueType for this LLVM IR type.
|
// Base case: we can get an MVT::ValueType for this LLVM IR type.
|
||||||
MVT::ValueType VT = TLI.getValueType(Ty);
|
ValueVTs.push_back(TLI.getValueType(Ty));
|
||||||
ValueVTs.push_back(VT);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
namespace {
|
||||||
/// RegsForValue - This struct represents the physical registers that a
|
/// RegsForValue - This struct represents the physical registers that a
|
||||||
/// particular value is assigned and the type information about the value.
|
/// particular value is assigned and the type information about the value.
|
||||||
/// This is needed because values can be promoted into larger registers and
|
/// This is needed because values can be promoted into larger registers and
|
||||||
|
Loading…
Reference in New Issue
Block a user