mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Add a comment to CreateRegForValue that clarifies the handling of
aggregate types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50366 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0fe00906c8
commit
10a6b7ab65
@ -369,6 +369,10 @@ FunctionLoweringInfo::FunctionLoweringInfo(TargetLowering &tli,
|
||||
/// CreateRegForValue - Allocate the appropriate number of virtual registers of
|
||||
/// the correctly promoted or expanded types. Assign these registers
|
||||
/// consecutive vreg numbers and return the first assigned number.
|
||||
///
|
||||
/// In the case that the given value has struct or array type, this function
|
||||
/// will assign registers for each member or element.
|
||||
///
|
||||
unsigned FunctionLoweringInfo::CreateRegForValue(const Value *V) {
|
||||
SmallVector<MVT::ValueType, 4> ValueVTs;
|
||||
ComputeValueVTs(TLI, V->getType(), ValueVTs);
|
||||
|
Loading…
Reference in New Issue
Block a user