| 1942 | } |
| 1943 | |
| 1944 | bool TypeDecl::isBaseVectorType() const { |
| 1945 | switch (baseType) { |
| 1946 | case tInt2: |
| 1947 | case tInt3: |
| 1948 | case tInt4: |
| 1949 | case tUInt2: |
| 1950 | case tUInt3: |
| 1951 | case tUInt4: |
| 1952 | case tFloat2: |
| 1953 | case tFloat3: |
| 1954 | case tFloat4: |
| 1955 | case tRange: |
| 1956 | case tURange: |
| 1957 | case tRange64: |
| 1958 | case tURange64: |
| 1959 | return true; |
| 1960 | default: |
| 1961 | return false; |
| 1962 | } |
| 1963 | } |
| 1964 | |
| 1965 | int TypeDecl::getVectorDim() const { |
| 1966 | switch (baseType) { |