blob: ffd070f4d906e1ced8b5d6a7819f619e8562a2f5 [file] [log] [blame]
Vikram S. Advea1d14f32001-10-10 20:50:43 +00001// $Id$ -*-c++-*-
2//***************************************************************************
3// File:
4// InstrSelectionSupport.h
5//
6// Purpose:
7// Target-independent instruction selection code.
8// See SparcInstrSelection.cpp for usage.
9//
10// History:
11// 10/10/01 - Vikram Adve - Created
12//**************************************************************************/
13
14#include "llvm/CodeGen/InstrSelectionSupport.h"
15#include "llvm/CodeGen/InstrSelection.h"
Vikram S. Adve36f0a9e2002-05-19 15:34:29 +000016#include "llvm/CodeGen/MachineInstr.h"
17#include "llvm/CodeGen/MachineInstrAnnot.h"
Chris Lattnerfb3b1ec2002-02-03 07:39:06 +000018#include "llvm/CodeGen/MachineCodeForInstruction.h"
19#include "llvm/CodeGen/MachineCodeForMethod.h"
20#include "llvm/CodeGen/InstrForest.h"
Vikram S. Advea1d14f32001-10-10 20:50:43 +000021#include "llvm/Target/TargetMachine.h"
22#include "llvm/Target/MachineRegInfo.h"
Chris Lattner31bcdb82002-04-28 19:55:58 +000023#include "llvm/Constants.h"
Chris Lattner2fbfdcf2002-04-07 20:49:59 +000024#include "llvm/Function.h"
Vikram S. Adve94e40ef2001-10-28 21:46:23 +000025#include "llvm/BasicBlock.h"
Vikram S. Advea1d14f32001-10-10 20:50:43 +000026#include "llvm/Type.h"
27#include "llvm/iMemory.h"
Chris Lattner697954c2002-01-20 22:54:45 +000028using std::vector;
Vikram S. Advea1d14f32001-10-10 20:50:43 +000029
30//*************************** Local Functions ******************************/
31
Vikram S. Advea1d14f32001-10-10 20:50:43 +000032
Vikram S. Adve36f0a9e2002-05-19 15:34:29 +000033// Generate code to load the constant into a TmpInstruction (virtual reg) and
34// returns the virtual register.
35//
Vikram S. Adve6d353262001-10-17 23:57:50 +000036static TmpInstruction*
Chris Lattner2fbfdcf2002-04-07 20:49:59 +000037InsertCodeToLoadConstant(Function *F,
Vikram S. Adve42f63202002-03-18 03:33:43 +000038 Value* opValue,
Vikram S. Adve6d353262001-10-17 23:57:50 +000039 Instruction* vmInstr,
40 vector<MachineInstr*>& loadConstVec,
41 TargetMachine& target)
Vikram S. Advea1d14f32001-10-10 20:50:43 +000042{
Vikram S. Adve6d353262001-10-17 23:57:50 +000043 vector<TmpInstruction*> tempVec;
Vikram S. Advea1d14f32001-10-10 20:50:43 +000044
Vikram S. Adve6d353262001-10-17 23:57:50 +000045 // Create a tmp virtual register to hold the constant.
Chris Lattnerfb3b1ec2002-02-03 07:39:06 +000046 TmpInstruction* tmpReg = new TmpInstruction(opValue);
Vikram S. Adve36f0a9e2002-05-19 15:34:29 +000047 MachineCodeForInstruction &mcfi = MachineCodeForInstruction::get(vmInstr);
48 mcfi.addTemp(tmpReg);
Vikram S. Advea1d14f32001-10-10 20:50:43 +000049
Vikram S. Adve36f0a9e2002-05-19 15:34:29 +000050 target.getInstrInfo().CreateCodeToLoadConst(target, F, opValue, tmpReg,
51 loadConstVec, mcfi);
Vikram S. Adve6d353262001-10-17 23:57:50 +000052
53 // Record the mapping from the tmp VM instruction to machine instruction.
54 // Do this for all machine instructions that were not mapped to any
55 // other temp values created by
56 // tmpReg->addMachineInstruction(loadConstVec.back());
57
58 return tmpReg;
Vikram S. Advea1d14f32001-10-10 20:50:43 +000059}
60
61
Vikram S. Adve6d353262001-10-17 23:57:50 +000062//---------------------------------------------------------------------------
63// Function GetConstantValueAsSignedInt
64//
65// Convenience function to get the value of an integer constant, for an
66// appropriate integer or non-integer type that can be held in an integer.
67// The type of the argument must be the following:
68// Signed or unsigned integer
69// Boolean
70// Pointer
71//
72// isValidConstant is set to true if a valid constant was found.
73//---------------------------------------------------------------------------
74
75int64_t
76GetConstantValueAsSignedInt(const Value *V,
77 bool &isValidConstant)
Vikram S. Advea1d14f32001-10-10 20:50:43 +000078{
Chris Lattnere9bb2df2001-12-03 22:26:30 +000079 if (!isa<Constant>(V))
Vikram S. Advea1d14f32001-10-10 20:50:43 +000080 {
Vikram S. Adve6d353262001-10-17 23:57:50 +000081 isValidConstant = false;
82 return 0;
Vikram S. Advea1d14f32001-10-10 20:50:43 +000083 }
84
Vikram S. Adve6d353262001-10-17 23:57:50 +000085 isValidConstant = true;
86
87 if (V->getType() == Type::BoolTy)
Chris Lattnere9bb2df2001-12-03 22:26:30 +000088 return (int64_t) cast<ConstantBool>(V)->getValue();
Vikram S. Adve6d353262001-10-17 23:57:50 +000089
90 if (V->getType()->isIntegral())
91 {
92 if (V->getType()->isSigned())
Chris Lattnere9bb2df2001-12-03 22:26:30 +000093 return cast<ConstantSInt>(V)->getValue();
Vikram S. Adve6d353262001-10-17 23:57:50 +000094
95 assert(V->getType()->isUnsigned());
Chris Lattnere9bb2df2001-12-03 22:26:30 +000096 uint64_t Val = cast<ConstantUInt>(V)->getValue();
Vikram S. Adve6d353262001-10-17 23:57:50 +000097 if (Val < INT64_MAX) // then safe to cast to signed
98 return (int64_t)Val;
99 }
Vikram S. Adve17927792002-03-31 18:56:51 +0000100
Vikram S. Adve6d353262001-10-17 23:57:50 +0000101 isValidConstant = false;
102 return 0;
Vikram S. Advea1d14f32001-10-10 20:50:43 +0000103}
104
105
106//---------------------------------------------------------------------------
107// Function: FoldGetElemChain
108//
109// Purpose:
Vikram S. Advec941b872002-03-24 03:37:53 +0000110// Fold a chain of GetElementPtr instructions containing only
Vikram S. Adve36f0a9e2002-05-19 15:34:29 +0000111// constant offsets into an equivalent (Pointer, IndexVector) pair.
Vikram S. Advec941b872002-03-24 03:37:53 +0000112// Returns the pointer Value, and stores the resulting IndexVector
113// in argument chainIdxVec.
Vikram S. Advea1d14f32001-10-10 20:50:43 +0000114//---------------------------------------------------------------------------
115
116Value*
117FoldGetElemChain(const InstructionNode* getElemInstrNode,
Vikram S. Advefa248972001-12-15 00:36:32 +0000118 vector<Value*>& chainIdxVec)
Vikram S. Advea1d14f32001-10-10 20:50:43 +0000119{
120 MemAccessInst* getElemInst = (MemAccessInst*)
121 getElemInstrNode->getInstruction();
122
Vikram S. Adve17927792002-03-31 18:56:51 +0000123 // Return NULL if we don't fold any instructions in.
Vikram S. Advec941b872002-03-24 03:37:53 +0000124 Value* ptrVal = NULL;
Vikram S. Adve36f0a9e2002-05-19 15:34:29 +0000125
126 // Remember if the last instruction had a leading [0] index.
127 bool hasLeadingZero = false;
Vikram S. Advea1d14f32001-10-10 20:50:43 +0000128
Vikram S. Advec941b872002-03-24 03:37:53 +0000129 // Now chase the chain of getElementInstr instructions, if any.
Vikram S. Adve36f0a9e2002-05-19 15:34:29 +0000130 // Check for any non-constant indices and stop there.
Vikram S. Advec941b872002-03-24 03:37:53 +0000131 //
132 const InstrTreeNode* ptrChild = getElemInstrNode;
Vikram S. Advea1d14f32001-10-10 20:50:43 +0000133 while (ptrChild->getOpLabel() == Instruction::GetElementPtr ||
134 ptrChild->getOpLabel() == GetElemPtrIdx)
135 {
136 // Child is a GetElemPtr instruction
137 getElemInst = (MemAccessInst*)
138 ((InstructionNode*) ptrChild)->getInstruction();
Vikram S. Advefa248972001-12-15 00:36:32 +0000139 const vector<Value*>& idxVec = getElemInst->copyIndices();
Vikram S. Adve36f0a9e2002-05-19 15:34:29 +0000140 bool allConstantOffsets = true;
Vikram S. Advea1d14f32001-10-10 20:50:43 +0000141
Vikram S. Adve36f0a9e2002-05-19 15:34:29 +0000142 // Check for a leading [0] index, if any. It will be discarded later.
143 ConstantUInt* CV = dyn_cast<ConstantUInt>(idxVec[0]);
144 hasLeadingZero = bool(CV && CV->getType() == Type::UIntTy &&
145 (CV->getValue() == 0));
Vikram S. Advec941b872002-03-24 03:37:53 +0000146
Vikram S. Adve36f0a9e2002-05-19 15:34:29 +0000147 // Check that all offsets are constant for this instruction
148 for (unsigned int i=0; i < idxVec.size(); i++)
149 if (! isa<ConstantUInt>(idxVec[i]))
150 {
151 allConstantOffsets = false;
152 break;
153 }
Vikram S. Advec941b872002-03-24 03:37:53 +0000154
Vikram S. Adve36f0a9e2002-05-19 15:34:29 +0000155 if (allConstantOffsets)
Vikram S. Adve17927792002-03-31 18:56:51 +0000156 { // Get pointer value out of ptrChild.
Vikram S. Advec941b872002-03-24 03:37:53 +0000157 ptrVal = getElemInst->getPointerOperand();
Vikram S. Adve36f0a9e2002-05-19 15:34:29 +0000158
159 // Insert its index vector at the start.
160 chainIdxVec.insert(chainIdxVec.begin(),
161 idxVec.begin() + (hasLeadingZero? 1:0),
162 idxVec.end());
Vikram S. Adve17927792002-03-31 18:56:51 +0000163
164 // Mark the folded node so no code is generated for it.
Vikram S. Advec941b872002-03-24 03:37:53 +0000165 ((InstructionNode*) ptrChild)->markFoldedIntoParent();
Vikram S. Advec941b872002-03-24 03:37:53 +0000166 }
167 else // cannot fold this getElementPtr instr. or any further ones
168 break;
Vikram S. Advea1d14f32001-10-10 20:50:43 +0000169
170 ptrChild = ptrChild->leftChild();
171 }
172
Vikram S. Adve36f0a9e2002-05-19 15:34:29 +0000173 // If the first getElementPtr instruction had a leading [0], add it back.
174 // Note that this instruction is the *last* one handled above.
175 if (hasLeadingZero)
176 chainIdxVec.insert(chainIdxVec.begin(), ConstantUInt::get(Type::UIntTy,0));
177
Vikram S. Advea1d14f32001-10-10 20:50:43 +0000178 return ptrVal;
179}
180
181
182//------------------------------------------------------------------------
183// Function Set2OperandsFromInstr
184// Function Set3OperandsFromInstr
185//
186// For the common case of 2- and 3-operand arithmetic/logical instructions,
187// set the m/c instr. operands directly from the VM instruction's operands.
188// Check whether the first or second operand is 0 and can use a dedicated "0"
189// register.
190// Check whether the second operand should use an immediate field or register.
191// (First and third operands are never immediates for such instructions.)
192//
193// Arguments:
194// canDiscardResult: Specifies that the result operand can be discarded
195// by using the dedicated "0"
196//
197// op1position, op2position and resultPosition: Specify in which position
198// in the machine instruction the 3 operands (arg1, arg2
199// and result) should go.
200//
Vikram S. Advea1d14f32001-10-10 20:50:43 +0000201//------------------------------------------------------------------------
202
203void
204Set2OperandsFromInstr(MachineInstr* minstr,
205 InstructionNode* vmInstrNode,
206 const TargetMachine& target,
207 bool canDiscardResult,
208 int op1Position,
209 int resultPosition)
210{
211 Set3OperandsFromInstr(minstr, vmInstrNode, target,
212 canDiscardResult, op1Position,
213 /*op2Position*/ -1, resultPosition);
214}
215
Vikram S. Advea1d14f32001-10-10 20:50:43 +0000216
217void
218Set3OperandsFromInstr(MachineInstr* minstr,
219 InstructionNode* vmInstrNode,
220 const TargetMachine& target,
221 bool canDiscardResult,
222 int op1Position,
223 int op2Position,
224 int resultPosition)
225{
226 assert(op1Position >= 0);
227 assert(resultPosition >= 0);
228
229 // operand 1
Vikram S. Adve42f63202002-03-18 03:33:43 +0000230 minstr->SetMachineOperandVal(op1Position, MachineOperand::MO_VirtualRegister,
Vikram S. Advea1d14f32001-10-10 20:50:43 +0000231 vmInstrNode->leftChild()->getValue());
232
233 // operand 2 (if any)
234 if (op2Position >= 0)
Vikram S. Adve42f63202002-03-18 03:33:43 +0000235 minstr->SetMachineOperandVal(op2Position, MachineOperand::MO_VirtualRegister,
Vikram S. Advea1d14f32001-10-10 20:50:43 +0000236 vmInstrNode->rightChild()->getValue());
237
238 // result operand: if it can be discarded, use a dead register if one exists
239 if (canDiscardResult && target.getRegInfo().getZeroRegNum() >= 0)
Vikram S. Adve42f63202002-03-18 03:33:43 +0000240 minstr->SetMachineOperandReg(resultPosition,
Vikram S. Advea1d14f32001-10-10 20:50:43 +0000241 target.getRegInfo().getZeroRegNum());
242 else
Vikram S. Adve42f63202002-03-18 03:33:43 +0000243 minstr->SetMachineOperandVal(resultPosition,
Vikram S. Advea1d14f32001-10-10 20:50:43 +0000244 MachineOperand::MO_VirtualRegister, vmInstrNode->getValue());
245}
246
247
248MachineOperand::MachineOperandType
249ChooseRegOrImmed(Value* val,
250 MachineOpCode opCode,
251 const TargetMachine& target,
252 bool canUseImmed,
253 unsigned int& getMachineRegNum,
254 int64_t& getImmedValue)
255{
256 MachineOperand::MachineOperandType opType =
257 MachineOperand::MO_VirtualRegister;
258 getMachineRegNum = 0;
259 getImmedValue = 0;
260
261 // Check for the common case first: argument is not constant
262 //
Chris Lattnere9bb2df2001-12-03 22:26:30 +0000263 Constant *CPV = dyn_cast<Constant>(val);
Vikram S. Advea1d14f32001-10-10 20:50:43 +0000264 if (!CPV) return opType;
265
Chris Lattnere9bb2df2001-12-03 22:26:30 +0000266 if (ConstantBool *CPB = dyn_cast<ConstantBool>(CPV))
Vikram S. Advea1d14f32001-10-10 20:50:43 +0000267 {
Vikram S. Advea1d14f32001-10-10 20:50:43 +0000268 if (!CPB->getValue() && target.getRegInfo().getZeroRegNum() >= 0)
269 {
270 getMachineRegNum = target.getRegInfo().getZeroRegNum();
271 return MachineOperand::MO_MachineRegister;
272 }
273
274 getImmedValue = 1;
275 return MachineOperand::MO_SignExtendedImmed;
276 }
277
Vikram S. Advec8117452001-11-14 17:24:49 +0000278 // Otherwise it needs to be an integer or a NULL pointer
279 if (! CPV->getType()->isIntegral() &&
Chris Lattner9b625032002-05-06 16:15:30 +0000280 ! (isa<PointerType>(CPV->getType()) &&
Vikram S. Advec8117452001-11-14 17:24:49 +0000281 CPV->isNullValue()))
282 return opType;
283
Vikram S. Advea1d14f32001-10-10 20:50:43 +0000284 // Now get the constant value and check if it fits in the IMMED field.
285 // Take advantage of the fact that the max unsigned value will rarely
286 // fit into any IMMED field and ignore that case (i.e., cast smaller
287 // unsigned constants to signed).
288 //
289 int64_t intValue;
Chris Lattner9b625032002-05-06 16:15:30 +0000290 if (isa<PointerType>(CPV->getType()))
Vikram S. Advec8117452001-11-14 17:24:49 +0000291 {
292 intValue = 0;
293 }
Vikram S. Adve9e29f782001-11-14 17:55:02 +0000294 else if (CPV->getType()->isSigned())
Vikram S. Advea1d14f32001-10-10 20:50:43 +0000295 {
Chris Lattnere9bb2df2001-12-03 22:26:30 +0000296 intValue = cast<ConstantSInt>(CPV)->getValue();
Vikram S. Advea1d14f32001-10-10 20:50:43 +0000297 }
298 else
299 {
Chris Lattnere9bb2df2001-12-03 22:26:30 +0000300 uint64_t V = cast<ConstantUInt>(CPV)->getValue();
Vikram S. Advea1d14f32001-10-10 20:50:43 +0000301 if (V >= INT64_MAX) return opType;
302 intValue = (int64_t)V;
303 }
304
305 if (intValue == 0 && target.getRegInfo().getZeroRegNum() >= 0)
306 {
307 opType = MachineOperand::MO_MachineRegister;
308 getMachineRegNum = target.getRegInfo().getZeroRegNum();
309 }
310 else if (canUseImmed &&
311 target.getInstrInfo().constantFitsInImmedField(opCode, intValue))
312 {
Vikram S. Adve36f0a9e2002-05-19 15:34:29 +0000313 opType = CPV->getType()->isSigned()
314 ? MachineOperand::MO_SignExtendedImmed
315 : MachineOperand::MO_UnextendedImmed;
Vikram S. Advea1d14f32001-10-10 20:50:43 +0000316 getImmedValue = intValue;
317 }
318
319 return opType;
320}
321
Vikram S. Adve6d353262001-10-17 23:57:50 +0000322
323//---------------------------------------------------------------------------
324// Function: FixConstantOperandsForInstr
325//
326// Purpose:
327// Special handling for constant operands of a machine instruction
328// -- if the constant is 0, use the hardwired 0 register, if any;
329// -- if the constant fits in the IMMEDIATE field, use that field;
330// -- else create instructions to put the constant into a register, either
331// directly or by loading explicitly from the constant pool.
332//
333// In the first 2 cases, the operand of `minstr' is modified in place.
334// Returns a vector of machine instructions generated for operands that
335// fall under case 3; these must be inserted before `minstr'.
336//---------------------------------------------------------------------------
337
338vector<MachineInstr*>
339FixConstantOperandsForInstr(Instruction* vmInstr,
340 MachineInstr* minstr,
341 TargetMachine& target)
342{
343 vector<MachineInstr*> loadConstVec;
344
345 const MachineInstrDescriptor& instrDesc =
346 target.getInstrInfo().getDescriptor(minstr->getOpCode());
347
Chris Lattner2fbfdcf2002-04-07 20:49:59 +0000348 Function *F = vmInstr->getParent()->getParent();
Vikram S. Adve94e40ef2001-10-28 21:46:23 +0000349
Vikram S. Adve6d353262001-10-17 23:57:50 +0000350 for (unsigned op=0; op < minstr->getNumOperands(); op++)
351 {
352 const MachineOperand& mop = minstr->getOperand(op);
353
354 // skip the result position (for efficiency below) and any other
355 // positions already marked as not a virtual register
356 if (instrDesc.resultPos == (int) op ||
357 mop.getOperandType() != MachineOperand::MO_VirtualRegister ||
358 mop.getVRegValue() == NULL)
359 {
360 continue;
361 }
362
363 Value* opValue = mop.getVRegValue();
364 bool constantThatMustBeLoaded = false;
365
Vikram S. Adve42f63202002-03-18 03:33:43 +0000366 if (Constant *opConst = dyn_cast<Constant>(opValue))
367 {
Vikram S. Adve6d353262001-10-17 23:57:50 +0000368 unsigned int machineRegNum;
369 int64_t immedValue;
370 MachineOperand::MachineOperandType opType =
371 ChooseRegOrImmed(opValue, minstr->getOpCode(), target,
Vikram S. Adve42f63202002-03-18 03:33:43 +0000372 (target.getInstrInfo().getImmedConstantPos(minstr->getOpCode()) == (int) op),
Vikram S. Adve6d353262001-10-17 23:57:50 +0000373 machineRegNum, immedValue);
Vikram S. Adveecd58132001-11-14 18:49:45 +0000374
Vikram S. Adve6d353262001-10-17 23:57:50 +0000375 if (opType == MachineOperand::MO_MachineRegister)
Vikram S. Adve42f63202002-03-18 03:33:43 +0000376 minstr->SetMachineOperandReg(op, machineRegNum);
Vikram S. Adve6d353262001-10-17 23:57:50 +0000377 else if (opType == MachineOperand::MO_VirtualRegister)
378 constantThatMustBeLoaded = true; // load is generated below
379 else
Vikram S. Adve42f63202002-03-18 03:33:43 +0000380 minstr->SetMachineOperandConst(op, opType, immedValue);
Vikram S. Adve94e40ef2001-10-28 21:46:23 +0000381 }
382
Vikram S. Adve6d353262001-10-17 23:57:50 +0000383 if (constantThatMustBeLoaded || isa<GlobalValue>(opValue))
384 { // opValue is a constant that must be explicitly loaded into a reg.
Vikram S. Adve36f0a9e2002-05-19 15:34:29 +0000385 TmpInstruction* tmpReg = InsertCodeToLoadConstant(F, opValue,vmInstr,
Chris Lattner2fbfdcf2002-04-07 20:49:59 +0000386 loadConstVec,
387 target);
Vikram S. Adve42f63202002-03-18 03:33:43 +0000388 minstr->SetMachineOperandVal(op, MachineOperand::MO_VirtualRegister,
389 tmpReg);
Vikram S. Adve6d353262001-10-17 23:57:50 +0000390 }
391 }
392
393 //
Vikram S. Adve36f0a9e2002-05-19 15:34:29 +0000394 // Also, check for implicit operands used by the machine instruction
395 // (no need to check those defined since they cannot be constants).
396 // These include:
Vikram S. Adve6d353262001-10-17 23:57:50 +0000397 // -- arguments to a Call
398 // -- return value of a Return
399 // Any such operand that is a constant value needs to be fixed also.
400 // The current instructions with implicit refs (viz., Call and Return)
401 // have no immediate fields, so the constant always needs to be loaded
402 // into a register.
403 //
Vikram S. Adve36f0a9e2002-05-19 15:34:29 +0000404 bool isCall = target.getInstrInfo().isCall(minstr->getOpCode());
405 unsigned lastCallArgNum = 0; // unused if not a call
406 CallArgsDescriptor* argDesc = NULL; // unused if not a call
407 if (isCall)
408 argDesc = CallArgsDescriptor::get(minstr);
409
Vikram S. Adve6d353262001-10-17 23:57:50 +0000410 for (unsigned i=0, N=minstr->getNumImplicitRefs(); i < N; ++i)
Chris Lattnere9bb2df2001-12-03 22:26:30 +0000411 if (isa<Constant>(minstr->getImplicitRef(i)) ||
Vikram S. Adve6d353262001-10-17 23:57:50 +0000412 isa<GlobalValue>(minstr->getImplicitRef(i)))
413 {
Vikram S. Adve94e40ef2001-10-28 21:46:23 +0000414 Value* oldVal = minstr->getImplicitRef(i);
Vikram S. Adve6d353262001-10-17 23:57:50 +0000415 TmpInstruction* tmpReg =
Chris Lattner2fbfdcf2002-04-07 20:49:59 +0000416 InsertCodeToLoadConstant(F, oldVal, vmInstr, loadConstVec, target);
Vikram S. Adve6d353262001-10-17 23:57:50 +0000417 minstr->setImplicitRef(i, tmpReg);
Vikram S. Adve36f0a9e2002-05-19 15:34:29 +0000418
419 if (isCall)
420 { // find and replace the argument in the CallArgsDescriptor
421 unsigned i=lastCallArgNum;
422 while (argDesc->getArgInfo(i).getArgVal() != oldVal)
423 ++i;
424 assert(i < argDesc->getNumArgs() &&
425 "Constant operands to a call *must* be in the arg list");
426 lastCallArgNum = i;
427 argDesc->getArgInfo(i).replaceArgVal(tmpReg);
428 }
Vikram S. Adve6d353262001-10-17 23:57:50 +0000429 }
430
431 return loadConstVec;
432}
433
434