Skip to content

Commit

Permalink
Add some helper functions for getting the intrinsic ID to use for a g…
Browse files Browse the repository at this point in the history
…iven oper (#104498)

* Add some helper functions for getting the intrinsic ID to use for a given oper

* Make the Unix build happy

* Make the Arm64 build happy

* Respond to PR feedback

* Ensure we don't use EVEX unnecessarily

* Ensure zero diffs for x64
  • Loading branch information
tannergooding authored Jul 7, 2024
1 parent 9efc798 commit 4addcaa
Show file tree
Hide file tree
Showing 6 changed files with 2,036 additions and 1,827 deletions.
16 changes: 16 additions & 0 deletions src/coreclr/jit/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -2597,6 +2597,7 @@ class Compiler
friend class FlowGraphNaturalLoop;

#ifdef FEATURE_HW_INTRINSICS
friend struct GenTreeHWIntrinsic;
friend struct HWIntrinsicInfo;
friend struct SimdAsHWIntrinsicInfo;
#endif // FEATURE_HW_INTRINSICS
Expand Down Expand Up @@ -9569,6 +9570,21 @@ class Compiler
// F+CD+DQ+BW+VL (such as VBMI) and should appear with a corresponding query around AVX512*_VL (i.e. AVX512_VBMI_VL)

#ifdef DEBUG
//------------------------------------------------------------------------
// IsBaselineVector256IsaSupportedDebugOnly - Does isa support exist for Vector256.
//
// Returns:
// `true` if AVX.
//
bool IsBaselineVector256IsaSupportedDebugOnly() const
{
#ifdef TARGET_XARCH
return compIsaSupportedDebugOnly(InstructionSet_AVX);
#else
return false;
#endif
}

//------------------------------------------------------------------------
// IsBaselineVector512IsaSupportedDebugOnly - Does isa support exist for Vector512.
//
Expand Down
Loading

0 comments on commit 4addcaa

Please sign in to comment.