|
@@ -4783,18 +4783,6 @@ public:
|
|
pIntrinsic->uNumArgs <= g_MaxIntrinsicParamCount + 1,
|
|
pIntrinsic->uNumArgs <= g_MaxIntrinsicParamCount + 1,
|
|
"otherwise g_MaxIntrinsicParamCount needs to be updated for wider signatures");
|
|
"otherwise g_MaxIntrinsicParamCount needs to be updated for wider signatures");
|
|
|
|
|
|
- // Some intrinsics only optionally exist in later language versions.
|
|
|
|
- // To prevent collisions with existing functions or templates, exclude
|
|
|
|
- // intrinsics when they aren't enabled.
|
|
|
|
- if (IsBuiltinTable(tableName) &&
|
|
|
|
- m_sema->getLangOpts().HLSLVersion < hlsl::LangStd::v2021) {
|
|
|
|
- if (pIntrinsic->Op == (UINT)IntrinsicOp::IOP_and ||
|
|
|
|
- pIntrinsic->Op == (UINT)IntrinsicOp::IOP_or ||
|
|
|
|
- pIntrinsic->Op == (UINT)IntrinsicOp::IOP_select) {
|
|
|
|
- continue;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
std::vector<QualType> functionArgTypes;
|
|
std::vector<QualType> functionArgTypes;
|
|
size_t badArgIdx;
|
|
size_t badArgIdx;
|
|
bool argsMatch = MatchArguments(cursor, QualType(), QualType(), Args, &functionArgTypes, badArgIdx);
|
|
bool argsMatch = MatchArguments(cursor, QualType(), QualType(), Args, &functionArgTypes, badArgIdx);
|