1 //===- CodeGenTarget.cpp - CodeGen Target Class Wrapper -------------------===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 // 10 // This class wraps target description classes used by the various code 11 // generation TableGen backends. This makes it easier to access the data and 12 // provides a single place that needs to check it for validity. All of these 13 // classes throw exceptions on error conditions. 14 // 15 //===----------------------------------------------------------------------===// 16 17 #include "CodeGenTarget.h" 18 #include "CodeGenIntrinsics.h" 19 #include "Record.h" 20 #include "llvm/ADT/StringExtras.h" 21 #include "llvm/Support/CommandLine.h" 22 #include <algorithm> 23 using namespace llvm; 24 25 static cl::opt<unsigned> 26 AsmParserNum("asmparsernum", cl::init(0), 27 cl::desc("Make -gen-asm-parser emit assembly parser #N")); 28 29 static cl::opt<unsigned> 30 AsmWriterNum("asmwriternum", cl::init(0), 31 cl::desc("Make -gen-asm-writer emit assembly writer #N")); 32 33 /// getValueType - Return the MVT::SimpleValueType that the specified TableGen 34 /// record corresponds to. 35 MVT::SimpleValueType llvm::getValueType(Record *Rec) { 36 return (MVT::SimpleValueType)Rec->getValueAsInt("Value"); 37 } 38 39 std::string llvm::getName(MVT::SimpleValueType T) { 40 switch (T) { 41 case MVT::Other: return "UNKNOWN"; 42 case MVT::iPTR: return "TLI.getPointerTy()"; 43 case MVT::iPTRAny: return "TLI.getPointerTy()"; 44 default: return getEnumName(T); 45 } 46 } 47 48 std::string llvm::getEnumName(MVT::SimpleValueType T) { 49 switch (T) { 50 case MVT::Other: return "MVT::Other"; 51 case MVT::i1: return "MVT::i1"; 52 case MVT::i8: return "MVT::i8"; 53 case MVT::i16: return "MVT::i16"; 54 case MVT::i32: return "MVT::i32"; 55 case MVT::i64: return "MVT::i64"; 56 case MVT::i128: return "MVT::i128"; 57 case MVT::iAny: return "MVT::iAny"; 58 case MVT::fAny: return "MVT::fAny"; 59 case MVT::vAny: return "MVT::vAny"; 60 case MVT::f32: return "MVT::f32"; 61 case MVT::f64: return "MVT::f64"; 62 case MVT::f80: return "MVT::f80"; 63 case MVT::f128: return "MVT::f128"; 64 case MVT::ppcf128: return "MVT::ppcf128"; 65 case MVT::Flag: return "MVT::Flag"; 66 case MVT::isVoid:return "MVT::isVoid"; 67 case MVT::v2i8: return "MVT::v2i8"; 68 case MVT::v4i8: return "MVT::v4i8"; 69 case MVT::v8i8: return "MVT::v8i8"; 70 case MVT::v16i8: return "MVT::v16i8"; 71 case MVT::v32i8: return "MVT::v32i8"; 72 case MVT::v2i16: return "MVT::v2i16"; 73 case MVT::v4i16: return "MVT::v4i16"; 74 case MVT::v8i16: return "MVT::v8i16"; 75 case MVT::v16i16: return "MVT::v16i16"; 76 case MVT::v2i32: return "MVT::v2i32"; 77 case MVT::v4i32: return "MVT::v4i32"; 78 case MVT::v8i32: return "MVT::v8i32"; 79 case MVT::v1i64: return "MVT::v1i64"; 80 case MVT::v2i64: return "MVT::v2i64"; 81 case MVT::v4i64: return "MVT::v4i64"; 82 case MVT::v2f32: return "MVT::v2f32"; 83 case MVT::v4f32: return "MVT::v4f32"; 84 case MVT::v8f32: return "MVT::v8f32"; 85 case MVT::v2f64: return "MVT::v2f64"; 86 case MVT::v4f64: return "MVT::v4f64"; 87 case MVT::Metadata: return "MVT::Metadata"; 88 case MVT::iPTR: return "MVT::iPTR"; 89 case MVT::iPTRAny: return "MVT::iPTRAny"; 90 default: assert(0 && "ILLEGAL VALUE TYPE!"); return ""; 91 } 92 } 93 94 /// getQualifiedName - Return the name of the specified record, with a 95 /// namespace qualifier if the record contains one. 96 /// 97 std::string llvm::getQualifiedName(const Record *R) { 98 std::string Namespace = R->getValueAsString("Namespace"); 99 if (Namespace.empty()) return R->getName(); 100 return Namespace + "::" + R->getName(); 101 } 102 103 104 105 106 /// getTarget - Return the current instance of the Target class. 107 /// 108 CodeGenTarget::CodeGenTarget() { 109 std::vector<Record*> Targets = Records.getAllDerivedDefinitions("Target"); 110 if (Targets.size() == 0) 111 throw std::string("ERROR: No 'Target' subclasses defined!"); 112 if (Targets.size() != 1) 113 throw std::string("ERROR: Multiple subclasses of Target defined!"); 114 TargetRec = Targets[0]; 115 } 116 117 118 const std::string &CodeGenTarget::getName() const { 119 return TargetRec->getName(); 120 } 121 122 std::string CodeGenTarget::getInstNamespace() const { 123 for (inst_iterator i = inst_begin(), e = inst_end(); i != e; ++i) { 124 // Make sure not to pick up "TargetOpcode" by accidentally getting 125 // the namespace off the PHI instruction or something. 126 if ((*i)->Namespace != "TargetOpcode") 127 return (*i)->Namespace; 128 } 129 130 return ""; 131 } 132 133 Record *CodeGenTarget::getInstructionSet() const { 134 return TargetRec->getValueAsDef("InstructionSet"); 135 } 136 137 138 CodeGenInstruction &CodeGenTarget::getInstruction(const Record *InstRec) const { 139 return getInstruction(InstRec->getName()); 140 } 141 142 143 /// getAsmParser - Return the AssemblyParser definition for this target. 144 /// 145 Record *CodeGenTarget::getAsmParser() const { 146 std::vector<Record*> LI = TargetRec->getValueAsListOfDefs("AssemblyParsers"); 147 if (AsmParserNum >= LI.size()) 148 throw "Target does not have an AsmParser #" + utostr(AsmParserNum) + "!"; 149 return LI[AsmParserNum]; 150 } 151 152 /// getAsmWriter - Return the AssemblyWriter definition for this target. 153 /// 154 Record *CodeGenTarget::getAsmWriter() const { 155 std::vector<Record*> LI = TargetRec->getValueAsListOfDefs("AssemblyWriters"); 156 if (AsmWriterNum >= LI.size()) 157 throw "Target does not have an AsmWriter #" + utostr(AsmWriterNum) + "!"; 158 return LI[AsmWriterNum]; 159 } 160 161 void CodeGenTarget::ReadRegisters() const { 162 std::vector<Record*> Regs = Records.getAllDerivedDefinitions("Register"); 163 if (Regs.empty()) 164 throw std::string("No 'Register' subclasses defined!"); 165 166 Registers.reserve(Regs.size()); 167 Registers.assign(Regs.begin(), Regs.end()); 168 } 169 170 CodeGenRegister::CodeGenRegister(Record *R) : TheDef(R) { 171 DeclaredSpillSize = R->getValueAsInt("SpillSize"); 172 DeclaredSpillAlignment = R->getValueAsInt("SpillAlignment"); 173 } 174 175 const std::string &CodeGenRegister::getName() const { 176 return TheDef->getName(); 177 } 178 179 void CodeGenTarget::ReadRegisterClasses() const { 180 std::vector<Record*> RegClasses = 181 Records.getAllDerivedDefinitions("RegisterClass"); 182 if (RegClasses.empty()) 183 throw std::string("No 'RegisterClass' subclasses defined!"); 184 185 RegisterClasses.reserve(RegClasses.size()); 186 RegisterClasses.assign(RegClasses.begin(), RegClasses.end()); 187 } 188 189 std::vector<MVT::SimpleValueType> CodeGenTarget:: 190 getRegisterVTs(Record *R) const { 191 std::vector<MVT::SimpleValueType> Result; 192 const std::vector<CodeGenRegisterClass> &RCs = getRegisterClasses(); 193 for (unsigned i = 0, e = RCs.size(); i != e; ++i) { 194 const CodeGenRegisterClass &RC = RegisterClasses[i]; 195 for (unsigned ei = 0, ee = RC.Elements.size(); ei != ee; ++ei) { 196 if (R == RC.Elements[ei]) { 197 const std::vector<MVT::SimpleValueType> &InVTs = RC.getValueTypes(); 198 Result.insert(Result.end(), InVTs.begin(), InVTs.end()); 199 } 200 } 201 } 202 return Result; 203 } 204 205 206 CodeGenRegisterClass::CodeGenRegisterClass(Record *R) : TheDef(R) { 207 // Rename anonymous register classes. 208 if (R->getName().size() > 9 && R->getName()[9] == '.') { 209 static unsigned AnonCounter = 0; 210 R->setName("AnonRegClass_"+utostr(AnonCounter++)); 211 } 212 213 std::vector<Record*> TypeList = R->getValueAsListOfDefs("RegTypes"); 214 for (unsigned i = 0, e = TypeList.size(); i != e; ++i) { 215 Record *Type = TypeList[i]; 216 if (!Type->isSubClassOf("ValueType")) 217 throw "RegTypes list member '" + Type->getName() + 218 "' does not derive from the ValueType class!"; 219 VTs.push_back(getValueType(Type)); 220 } 221 assert(!VTs.empty() && "RegisterClass must contain at least one ValueType!"); 222 223 std::vector<Record*> RegList = R->getValueAsListOfDefs("MemberList"); 224 for (unsigned i = 0, e = RegList.size(); i != e; ++i) { 225 Record *Reg = RegList[i]; 226 if (!Reg->isSubClassOf("Register")) 227 throw "Register Class member '" + Reg->getName() + 228 "' does not derive from the Register class!"; 229 Elements.push_back(Reg); 230 } 231 232 std::vector<Record*> SubRegClassList = 233 R->getValueAsListOfDefs("SubRegClassList"); 234 for (unsigned i = 0, e = SubRegClassList.size(); i != e; ++i) { 235 Record *SubRegClass = SubRegClassList[i]; 236 if (!SubRegClass->isSubClassOf("RegisterClass")) 237 throw "Register Class member '" + SubRegClass->getName() + 238 "' does not derive from the RegisterClass class!"; 239 SubRegClasses.push_back(SubRegClass); 240 } 241 242 // Allow targets to override the size in bits of the RegisterClass. 243 unsigned Size = R->getValueAsInt("Size"); 244 245 Namespace = R->getValueAsString("Namespace"); 246 SpillSize = Size ? Size : EVT(VTs[0]).getSizeInBits(); 247 SpillAlignment = R->getValueAsInt("Alignment"); 248 CopyCost = R->getValueAsInt("CopyCost"); 249 MethodBodies = R->getValueAsCode("MethodBodies"); 250 MethodProtos = R->getValueAsCode("MethodProtos"); 251 } 252 253 const std::string &CodeGenRegisterClass::getName() const { 254 return TheDef->getName(); 255 } 256 257 void CodeGenTarget::ReadLegalValueTypes() const { 258 const std::vector<CodeGenRegisterClass> &RCs = getRegisterClasses(); 259 for (unsigned i = 0, e = RCs.size(); i != e; ++i) 260 for (unsigned ri = 0, re = RCs[i].VTs.size(); ri != re; ++ri) 261 LegalValueTypes.push_back(RCs[i].VTs[ri]); 262 263 // Remove duplicates. 264 std::sort(LegalValueTypes.begin(), LegalValueTypes.end()); 265 LegalValueTypes.erase(std::unique(LegalValueTypes.begin(), 266 LegalValueTypes.end()), 267 LegalValueTypes.end()); 268 } 269 270 271 void CodeGenTarget::ReadInstructions() const { 272 std::vector<Record*> Insts = Records.getAllDerivedDefinitions("Instruction"); 273 if (Insts.size() <= 2) 274 throw std::string("No 'Instruction' subclasses defined!"); 275 276 // Parse the instructions defined in the .td file. 277 std::string InstFormatName = 278 getAsmWriter()->getValueAsString("InstFormatName"); 279 280 for (unsigned i = 0, e = Insts.size(); i != e; ++i) { 281 std::string AsmStr = Insts[i]->getValueAsString(InstFormatName); 282 Instructions.insert(std::make_pair(Insts[i]->getName(), 283 CodeGenInstruction(Insts[i], AsmStr))); 284 } 285 } 286 287 static const CodeGenInstruction * 288 GetInstByName(const char *Name, 289 const std::map<std::string, CodeGenInstruction> &Insts) { 290 std::map<std::string, CodeGenInstruction>::const_iterator 291 I = Insts.find(Name); 292 if (I == Insts.end()) 293 throw std::string("Could not find '") + Name + "' instruction!"; 294 return &I->second; 295 } 296 297 /// getInstructionsByEnumValue - Return all of the instructions defined by the 298 /// target, ordered by their enum value. 299 void CodeGenTarget::ComputeInstrsByEnum() const { 300 const std::map<std::string, CodeGenInstruction> &Insts = getInstructions(); 301 const CodeGenInstruction *PHI = GetInstByName("PHI", Insts); 302 const CodeGenInstruction *INLINEASM = GetInstByName("INLINEASM", Insts); 303 const CodeGenInstruction *DBG_LABEL = GetInstByName("DBG_LABEL", Insts); 304 const CodeGenInstruction *EH_LABEL = GetInstByName("EH_LABEL", Insts); 305 const CodeGenInstruction *GC_LABEL = GetInstByName("GC_LABEL", Insts); 306 const CodeGenInstruction *KILL = GetInstByName("KILL", Insts); 307 const CodeGenInstruction *EXTRACT_SUBREG = 308 GetInstByName("EXTRACT_SUBREG", Insts); 309 const CodeGenInstruction *INSERT_SUBREG = 310 GetInstByName("INSERT_SUBREG", Insts); 311 const CodeGenInstruction *IMPLICIT_DEF = GetInstByName("IMPLICIT_DEF", Insts); 312 const CodeGenInstruction *SUBREG_TO_REG = 313 GetInstByName("SUBREG_TO_REG", Insts); 314 const CodeGenInstruction *COPY_TO_REGCLASS = 315 GetInstByName("COPY_TO_REGCLASS", Insts); 316 const CodeGenInstruction *DBG_VALUE = GetInstByName("DBG_VALUE", Insts); 317 318 // Print out the rest of the instructions now. 319 InstrsByEnum.push_back(PHI); 320 InstrsByEnum.push_back(INLINEASM); 321 InstrsByEnum.push_back(DBG_LABEL); 322 InstrsByEnum.push_back(EH_LABEL); 323 InstrsByEnum.push_back(GC_LABEL); 324 InstrsByEnum.push_back(KILL); 325 InstrsByEnum.push_back(EXTRACT_SUBREG); 326 InstrsByEnum.push_back(INSERT_SUBREG); 327 InstrsByEnum.push_back(IMPLICIT_DEF); 328 InstrsByEnum.push_back(SUBREG_TO_REG); 329 InstrsByEnum.push_back(COPY_TO_REGCLASS); 330 InstrsByEnum.push_back(DBG_VALUE); 331 332 for (std::map<std::string, CodeGenInstruction>::const_iterator 333 I = Insts.begin(), E = Insts.end(); I != E; ++I) { 334 const CodeGenInstruction *CGI = &I->second; 335 336 if (CGI != PHI && 337 CGI != INLINEASM && 338 CGI != DBG_LABEL && 339 CGI != EH_LABEL && 340 CGI != GC_LABEL && 341 CGI != KILL && 342 CGI != EXTRACT_SUBREG && 343 CGI != INSERT_SUBREG && 344 CGI != IMPLICIT_DEF && 345 CGI != SUBREG_TO_REG && 346 CGI != COPY_TO_REGCLASS && 347 CGI != DBG_VALUE) 348 InstrsByEnum.push_back(CGI); 349 } 350 } 351 352 353 /// isLittleEndianEncoding - Return whether this target encodes its instruction 354 /// in little-endian format, i.e. bits laid out in the order [0..n] 355 /// 356 bool CodeGenTarget::isLittleEndianEncoding() const { 357 return getInstructionSet()->getValueAsBit("isLittleEndianEncoding"); 358 } 359 360 //===----------------------------------------------------------------------===// 361 // ComplexPattern implementation 362 // 363 ComplexPattern::ComplexPattern(Record *R) { 364 Ty = ::getValueType(R->getValueAsDef("Ty")); 365 NumOperands = R->getValueAsInt("NumOperands"); 366 SelectFunc = R->getValueAsString("SelectFunc"); 367 RootNodes = R->getValueAsListOfDefs("RootNodes"); 368 369 // Parse the properties. 370 Properties = 0; 371 std::vector<Record*> PropList = R->getValueAsListOfDefs("Properties"); 372 for (unsigned i = 0, e = PropList.size(); i != e; ++i) 373 if (PropList[i]->getName() == "SDNPHasChain") { 374 Properties |= 1 << SDNPHasChain; 375 } else if (PropList[i]->getName() == "SDNPOptInFlag") { 376 Properties |= 1 << SDNPOptInFlag; 377 } else if (PropList[i]->getName() == "SDNPMayStore") { 378 Properties |= 1 << SDNPMayStore; 379 } else if (PropList[i]->getName() == "SDNPMayLoad") { 380 Properties |= 1 << SDNPMayLoad; 381 } else if (PropList[i]->getName() == "SDNPSideEffect") { 382 Properties |= 1 << SDNPSideEffect; 383 } else if (PropList[i]->getName() == "SDNPMemOperand") { 384 Properties |= 1 << SDNPMemOperand; 385 } else { 386 errs() << "Unsupported SD Node property '" << PropList[i]->getName() 387 << "' on ComplexPattern '" << R->getName() << "'!\n"; 388 exit(1); 389 } 390 } 391 392 //===----------------------------------------------------------------------===// 393 // CodeGenIntrinsic Implementation 394 //===----------------------------------------------------------------------===// 395 396 std::vector<CodeGenIntrinsic> llvm::LoadIntrinsics(const RecordKeeper &RC, 397 bool TargetOnly) { 398 std::vector<Record*> I = RC.getAllDerivedDefinitions("Intrinsic"); 399 400 std::vector<CodeGenIntrinsic> Result; 401 402 for (unsigned i = 0, e = I.size(); i != e; ++i) { 403 bool isTarget = I[i]->getValueAsBit("isTarget"); 404 if (isTarget == TargetOnly) 405 Result.push_back(CodeGenIntrinsic(I[i])); 406 } 407 return Result; 408 } 409 410 CodeGenIntrinsic::CodeGenIntrinsic(Record *R) { 411 TheDef = R; 412 std::string DefName = R->getName(); 413 ModRef = WriteMem; 414 isOverloaded = false; 415 isCommutative = false; 416 417 if (DefName.size() <= 4 || 418 std::string(DefName.begin(), DefName.begin() + 4) != "int_") 419 throw "Intrinsic '" + DefName + "' does not start with 'int_'!"; 420 421 EnumName = std::string(DefName.begin()+4, DefName.end()); 422 423 if (R->getValue("GCCBuiltinName")) // Ignore a missing GCCBuiltinName field. 424 GCCBuiltinName = R->getValueAsString("GCCBuiltinName"); 425 426 TargetPrefix = R->getValueAsString("TargetPrefix"); 427 Name = R->getValueAsString("LLVMName"); 428 429 if (Name == "") { 430 // If an explicit name isn't specified, derive one from the DefName. 431 Name = "llvm."; 432 433 for (unsigned i = 0, e = EnumName.size(); i != e; ++i) 434 Name += (EnumName[i] == '_') ? '.' : EnumName[i]; 435 } else { 436 // Verify it starts with "llvm.". 437 if (Name.size() <= 5 || 438 std::string(Name.begin(), Name.begin() + 5) != "llvm.") 439 throw "Intrinsic '" + DefName + "'s name does not start with 'llvm.'!"; 440 } 441 442 // If TargetPrefix is specified, make sure that Name starts with 443 // "llvm.<targetprefix>.". 444 if (!TargetPrefix.empty()) { 445 if (Name.size() < 6+TargetPrefix.size() || 446 std::string(Name.begin() + 5, Name.begin() + 6 + TargetPrefix.size()) 447 != (TargetPrefix + ".")) 448 throw "Intrinsic '" + DefName + "' does not start with 'llvm." + 449 TargetPrefix + ".'!"; 450 } 451 452 // Parse the list of return types. 453 std::vector<MVT::SimpleValueType> OverloadedVTs; 454 ListInit *TypeList = R->getValueAsListInit("RetTypes"); 455 for (unsigned i = 0, e = TypeList->getSize(); i != e; ++i) { 456 Record *TyEl = TypeList->getElementAsRecord(i); 457 assert(TyEl->isSubClassOf("LLVMType") && "Expected a type!"); 458 MVT::SimpleValueType VT; 459 if (TyEl->isSubClassOf("LLVMMatchType")) { 460 unsigned MatchTy = TyEl->getValueAsInt("Number"); 461 assert(MatchTy < OverloadedVTs.size() && 462 "Invalid matching number!"); 463 VT = OverloadedVTs[MatchTy]; 464 // It only makes sense to use the extended and truncated vector element 465 // variants with iAny types; otherwise, if the intrinsic is not 466 // overloaded, all the types can be specified directly. 467 assert(((!TyEl->isSubClassOf("LLVMExtendedElementVectorType") && 468 !TyEl->isSubClassOf("LLVMTruncatedElementVectorType")) || 469 VT == MVT::iAny || VT == MVT::vAny) && 470 "Expected iAny or vAny type"); 471 } else { 472 VT = getValueType(TyEl->getValueAsDef("VT")); 473 } 474 if (EVT(VT).isOverloaded()) { 475 OverloadedVTs.push_back(VT); 476 isOverloaded |= true; 477 } 478 IS.RetVTs.push_back(VT); 479 IS.RetTypeDefs.push_back(TyEl); 480 } 481 482 if (IS.RetVTs.size() == 0) 483 throw "Intrinsic '"+DefName+"' needs at least a type for the ret value!"; 484 485 // Parse the list of parameter types. 486 TypeList = R->getValueAsListInit("ParamTypes"); 487 for (unsigned i = 0, e = TypeList->getSize(); i != e; ++i) { 488 Record *TyEl = TypeList->getElementAsRecord(i); 489 assert(TyEl->isSubClassOf("LLVMType") && "Expected a type!"); 490 MVT::SimpleValueType VT; 491 if (TyEl->isSubClassOf("LLVMMatchType")) { 492 unsigned MatchTy = TyEl->getValueAsInt("Number"); 493 assert(MatchTy < OverloadedVTs.size() && 494 "Invalid matching number!"); 495 VT = OverloadedVTs[MatchTy]; 496 // It only makes sense to use the extended and truncated vector element 497 // variants with iAny types; otherwise, if the intrinsic is not 498 // overloaded, all the types can be specified directly. 499 assert(((!TyEl->isSubClassOf("LLVMExtendedElementVectorType") && 500 !TyEl->isSubClassOf("LLVMTruncatedElementVectorType")) || 501 VT == MVT::iAny || VT == MVT::vAny) && 502 "Expected iAny or vAny type"); 503 } else 504 VT = getValueType(TyEl->getValueAsDef("VT")); 505 if (EVT(VT).isOverloaded()) { 506 OverloadedVTs.push_back(VT); 507 isOverloaded |= true; 508 } 509 IS.ParamVTs.push_back(VT); 510 IS.ParamTypeDefs.push_back(TyEl); 511 } 512 513 // Parse the intrinsic properties. 514 ListInit *PropList = R->getValueAsListInit("Properties"); 515 for (unsigned i = 0, e = PropList->getSize(); i != e; ++i) { 516 Record *Property = PropList->getElementAsRecord(i); 517 assert(Property->isSubClassOf("IntrinsicProperty") && 518 "Expected a property!"); 519 520 if (Property->getName() == "IntrNoMem") 521 ModRef = NoMem; 522 else if (Property->getName() == "IntrReadArgMem") 523 ModRef = ReadArgMem; 524 else if (Property->getName() == "IntrReadMem") 525 ModRef = ReadMem; 526 else if (Property->getName() == "IntrWriteArgMem") 527 ModRef = WriteArgMem; 528 else if (Property->getName() == "IntrWriteMem") 529 ModRef = WriteMem; 530 else if (Property->getName() == "Commutative") 531 isCommutative = true; 532 else if (Property->isSubClassOf("NoCapture")) { 533 unsigned ArgNo = Property->getValueAsInt("ArgNo"); 534 ArgumentAttributes.push_back(std::make_pair(ArgNo, NoCapture)); 535 } else 536 assert(0 && "Unknown property!"); 537 } 538 } 539