Lines Matching full:signature
54 // many OpenCL builtins share the same signature.
71 // signature, where the first entry is the return type and subsequent
127 // function attributes, and extension are equal for each signature.
150 // A signature is stored as a list of indexes of the TypeTable.
154 // 15, 2, 15 can represent a function with the signature:
164 // This means that the signature of this convert_float2_rtn overload has
181 // function. Each pair consists of a signature and a cumulative index.
193 // cumulative index of the associated signature in the SignaturesList>
198 // ptrToPrototype1 has the following signature: <double, double>
221 // cos | sin | Signature | Index
267 // Expand the TableGen Records representing a builtin function signature into
273 // signatures. Repeated occurrences of GenericType in a signature expand to
280 expandTypesInSignature(ArrayRef<const Record *> Signature,
299 emitTypeExtensionGuards(const SmallVectorImpl<std::string> &Signature);
433 // Index of the signature in the OpenCLTypeStruct table.
436 // the SignatureTable represent the complete signature. The first type at
454 // Verify that the combination of GenTypes in a signature is supported.
456 // a signature to contain different GenTypes if these GenTypes represent
460 static void VerifySignature(ArrayRef<const Record *> Signature,
465 for (const auto *T : Signature) {
466 // Check all GenericType arguments in this signature.
513 auto Signature = B->getValueAsListOfDefs("Signature");
518 return a.first == Signature;
522 VerifySignature(Signature, B);
523 SignaturesList.push_back(std::make_pair(Signature, CumulativeSignIndex));
525 CumulativeSignIndex += Signature.size();
575 // signature.
637 << Overload.first->getValueAsListOfDefs("Signature").size() << ", "
653 "signature lists should have the same size");
684 for (const auto &Signature : Fct.second) {
685 CurSignatureList->push_back(Signature.second);
724 // A single signature list may be used by different builtins. Return the
1058 ArrayRef<const Record *> Signature,
1060 // Find out if there are any GenTypes in this signature, and if so, calculate
1064 for (const auto &Arg : Signature) {
1095 // Process a single signature.
1096 for (unsigned ArgNum = 0; ArgNum < Signature.size(); ArgNum++) {
1168 const SmallVectorImpl<std::string> &Signature) {
1172 for (const auto &Ty : Signature) {
1215 expandTypesInSignature(B->getValueAsListOfDefs("Signature"), FTypes);
1222 for (const auto &Signature : FTypes) {
1223 StringRef OptionalTypeExtEndif = emitTypeExtensionGuards(Signature);
1226 OS << Signature[0] << " test" << TestID++ << "_" << Name << "(";
1227 if (Signature.size() > 1) {
1228 for (unsigned I = 1; I < Signature.size(); I++) {
1231 OS << Signature[I] << " arg" << I;
1238 if (Signature[0] != "void") {
1242 for (unsigned I = 1; I < Signature.size(); I++) {
1284 expandTypesInSignature(B->getValueAsListOfDefs("Signature"), FTypes);
1286 for (const auto &Signature : FTypes) {
1287 StringRef OptionalTypeExtEndif = emitTypeExtensionGuards(Signature);
1290 OS << Signature[0] << " __ovld ";
1299 if (Signature.size() > 1) {
1300 for (unsigned I = 1; I < Signature.size(); I++) {
1303 OS << Signature[I];