annotate lib/Target/X86/X86CallingConv.cpp @ 128:c347d3398279 default tip

fix
author mir3636
date Wed, 06 Dec 2017 14:37:17 +0900
parents 803732b1fca8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
121
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
1 //=== X86CallingConv.cpp - X86 Custom Calling Convention Impl -*- C++ -*-===//
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
2 //
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
3 // The LLVM Compiler Infrastructure
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
4 //
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
5 // This file is distributed under the University of Illinois Open Source
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
6 // License. See LICENSE.TXT for details.
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
7 //
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
8 //===----------------------------------------------------------------------===//
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
9 //
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
10 // This file contains the implementation of custom routines for the X86
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
11 // Calling Convention that aren't done by tablegen.
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
12 //
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
13 //===----------------------------------------------------------------------===//
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
14
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
15 #include "MCTargetDesc/X86MCTargetDesc.h"
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
16 #include "X86Subtarget.h"
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
17 #include "llvm/CodeGen/CallingConvLower.h"
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
18 #include "llvm/IR/CallingConv.h"
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
19
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
20 namespace llvm {
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
21
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
22 bool CC_X86_32_RegCall_Assign2Regs(unsigned &ValNo, MVT &ValVT, MVT &LocVT,
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
23 CCValAssign::LocInfo &LocInfo,
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
24 ISD::ArgFlagsTy &ArgFlags, CCState &State) {
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
25 // List of GPR registers that are available to store values in regcall
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
26 // calling convention.
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
27 static const MCPhysReg RegList[] = {X86::EAX, X86::ECX, X86::EDX, X86::EDI,
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
28 X86::ESI};
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
29
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
30 // The vector will save all the available registers for allocation.
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
31 SmallVector<unsigned, 5> AvailableRegs;
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
32
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
33 // searching for the available registers.
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
34 for (auto Reg : RegList) {
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
35 if (!State.isAllocated(Reg))
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
36 AvailableRegs.push_back(Reg);
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
37 }
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
38
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
39 const size_t RequiredGprsUponSplit = 2;
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
40 if (AvailableRegs.size() < RequiredGprsUponSplit)
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
41 return false; // Not enough free registers - continue the search.
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
42
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
43 // Allocating the available registers.
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
44 for (unsigned I = 0; I < RequiredGprsUponSplit; I++) {
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
45
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
46 // Marking the register as located.
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
47 unsigned Reg = State.AllocateReg(AvailableRegs[I]);
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
48
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
49 // Since we previously made sure that 2 registers are available
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
50 // we expect that a real register number will be returned.
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
51 assert(Reg && "Expecting a register will be available");
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
52
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
53 // Assign the value to the allocated register
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
54 State.addLoc(CCValAssign::getCustomReg(ValNo, ValVT, Reg, LocVT, LocInfo));
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
55 }
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
56
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
57 // Successful in allocating regsiters - stop scanning next rules.
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
58 return true;
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
59 }
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
60
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
61 static ArrayRef<MCPhysReg> CC_X86_VectorCallGetSSEs(const MVT &ValVT) {
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
62 if (ValVT.is512BitVector()) {
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
63 static const MCPhysReg RegListZMM[] = {X86::ZMM0, X86::ZMM1, X86::ZMM2,
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
64 X86::ZMM3, X86::ZMM4, X86::ZMM5};
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
65 return makeArrayRef(std::begin(RegListZMM), std::end(RegListZMM));
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
66 }
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
67
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
68 if (ValVT.is256BitVector()) {
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
69 static const MCPhysReg RegListYMM[] = {X86::YMM0, X86::YMM1, X86::YMM2,
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
70 X86::YMM3, X86::YMM4, X86::YMM5};
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
71 return makeArrayRef(std::begin(RegListYMM), std::end(RegListYMM));
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
72 }
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
73
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
74 static const MCPhysReg RegListXMM[] = {X86::XMM0, X86::XMM1, X86::XMM2,
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
75 X86::XMM3, X86::XMM4, X86::XMM5};
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
76 return makeArrayRef(std::begin(RegListXMM), std::end(RegListXMM));
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
77 }
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
78
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
79 static ArrayRef<MCPhysReg> CC_X86_64_VectorCallGetGPRs() {
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
80 static const MCPhysReg RegListGPR[] = {X86::RCX, X86::RDX, X86::R8, X86::R9};
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
81 return makeArrayRef(std::begin(RegListGPR), std::end(RegListGPR));
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
82 }
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
83
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
84 static bool CC_X86_VectorCallAssignRegister(unsigned &ValNo, MVT &ValVT,
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
85 MVT &LocVT,
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
86 CCValAssign::LocInfo &LocInfo,
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
87 ISD::ArgFlagsTy &ArgFlags,
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
88 CCState &State) {
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
89
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
90 ArrayRef<MCPhysReg> RegList = CC_X86_VectorCallGetSSEs(ValVT);
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
91 bool Is64bit = static_cast<const X86Subtarget &>(
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
92 State.getMachineFunction().getSubtarget())
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
93 .is64Bit();
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
94
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
95 for (auto Reg : RegList) {
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
96 // If the register is not marked as allocated - assign to it.
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
97 if (!State.isAllocated(Reg)) {
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
98 unsigned AssigedReg = State.AllocateReg(Reg);
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
99 assert(AssigedReg == Reg && "Expecting a valid register allocation");
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
100 State.addLoc(
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
101 CCValAssign::getReg(ValNo, ValVT, AssigedReg, LocVT, LocInfo));
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
102 return true;
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
103 }
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
104 // If the register is marked as shadow allocated - assign to it.
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
105 if (Is64bit && State.IsShadowAllocatedReg(Reg)) {
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
106 State.addLoc(CCValAssign::getReg(ValNo, ValVT, Reg, LocVT, LocInfo));
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
107 return true;
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
108 }
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
109 }
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
110
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
111 llvm_unreachable("Clang should ensure that hva marked vectors will have "
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
112 "an available register.");
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
113 return false;
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
114 }
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
115
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
116 bool CC_X86_64_VectorCall(unsigned &ValNo, MVT &ValVT, MVT &LocVT,
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
117 CCValAssign::LocInfo &LocInfo,
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
118 ISD::ArgFlagsTy &ArgFlags, CCState &State) {
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
119 // On the second pass, go through the HVAs only.
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
120 if (ArgFlags.isSecArgPass()) {
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
121 if (ArgFlags.isHva())
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
122 return CC_X86_VectorCallAssignRegister(ValNo, ValVT, LocVT, LocInfo,
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
123 ArgFlags, State);
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
124 return true;
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
125 }
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
126
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
127 // Process only vector types as defined by vectorcall spec:
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
128 // "A vector type is either a floating-point type, for example,
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
129 // a float or double, or an SIMD vector type, for example, __m128 or __m256".
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
130 if (!(ValVT.isFloatingPoint() ||
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
131 (ValVT.isVector() && ValVT.getSizeInBits() >= 128))) {
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
132 // If R9 was already assigned it means that we are after the fourth element
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
133 // and because this is not an HVA / Vector type, we need to allocate
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
134 // shadow XMM register.
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
135 if (State.isAllocated(X86::R9)) {
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
136 // Assign shadow XMM register.
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
137 (void)State.AllocateReg(CC_X86_VectorCallGetSSEs(ValVT));
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
138 }
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
139
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
140 return false;
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
141 }
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
142
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
143 if (!ArgFlags.isHva() || ArgFlags.isHvaStart()) {
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
144 // Assign shadow GPR register.
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
145 (void)State.AllocateReg(CC_X86_64_VectorCallGetGPRs());
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
146
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
147 // Assign XMM register - (shadow for HVA and non-shadow for non HVA).
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
148 if (unsigned Reg = State.AllocateReg(CC_X86_VectorCallGetSSEs(ValVT))) {
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
149 // In Vectorcall Calling convention, additional shadow stack can be
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
150 // created on top of the basic 32 bytes of win64.
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
151 // It can happen if the fifth or sixth argument is vector type or HVA.
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
152 // At that case for each argument a shadow stack of 8 bytes is allocated.
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
153 if (Reg == X86::XMM4 || Reg == X86::XMM5)
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
154 State.AllocateStack(8, 8);
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
155
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
156 if (!ArgFlags.isHva()) {
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
157 State.addLoc(CCValAssign::getReg(ValNo, ValVT, Reg, LocVT, LocInfo));
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
158 return true; // Allocated a register - Stop the search.
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
159 }
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
160 }
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
161 }
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
162
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
163 // If this is an HVA - Stop the search,
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
164 // otherwise continue the search.
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
165 return ArgFlags.isHva();
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
166 }
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
167
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
168 bool CC_X86_32_VectorCall(unsigned &ValNo, MVT &ValVT, MVT &LocVT,
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
169 CCValAssign::LocInfo &LocInfo,
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
170 ISD::ArgFlagsTy &ArgFlags, CCState &State) {
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
171 // On the second pass, go through the HVAs only.
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
172 if (ArgFlags.isSecArgPass()) {
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
173 if (ArgFlags.isHva())
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
174 return CC_X86_VectorCallAssignRegister(ValNo, ValVT, LocVT, LocInfo,
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
175 ArgFlags, State);
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
176 return true;
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
177 }
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
178
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
179 // Process only vector types as defined by vectorcall spec:
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
180 // "A vector type is either a floating point type, for example,
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
181 // a float or double, or an SIMD vector type, for example, __m128 or __m256".
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
182 if (!(ValVT.isFloatingPoint() ||
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
183 (ValVT.isVector() && ValVT.getSizeInBits() >= 128))) {
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
184 return false;
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
185 }
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
186
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
187 if (ArgFlags.isHva())
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
188 return true; // If this is an HVA - Stop the search.
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
189
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
190 // Assign XMM register.
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
191 if (unsigned Reg = State.AllocateReg(CC_X86_VectorCallGetSSEs(ValVT))) {
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
192 State.addLoc(CCValAssign::getReg(ValNo, ValVT, Reg, LocVT, LocInfo));
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
193 return true;
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
194 }
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
195
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
196 // In case we did not find an available XMM register for a vector -
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
197 // pass it indirectly.
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
198 // It is similar to CCPassIndirect, with the addition of inreg.
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
199 if (!ValVT.isFloatingPoint()) {
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
200 LocVT = MVT::i32;
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
201 LocInfo = CCValAssign::Indirect;
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
202 ArgFlags.setInReg();
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
203 }
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
204
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
205 return false; // No register was assigned - Continue the search.
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
206 }
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
207
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
208 } // End llvm namespace