summaryrefslogtreecommitdiff
path: root/src/jit/lsraxarch.cpp
diff options
context:
space:
mode:
authorTanner Gooding <tagoo@outlook.com>2018-06-02 09:29:47 -0700
committerTanner Gooding <tagoo@outlook.com>2018-06-02 14:23:38 -0700
commitf38e04321720aedfd22d4d03ee32a932c74ae744 (patch)
tree2435e85601a51fe7f63ea83a0f7ed0be7a38df4d /src/jit/lsraxarch.cpp
parent1500926747f749be3f91ede49b458804566d5004 (diff)
downloadcoreclr-f38e04321720aedfd22d4d03ee32a932c74ae744.tar.gz
coreclr-f38e04321720aedfd22d4d03ee32a932c74ae744.tar.bz2
coreclr-f38e04321720aedfd22d4d03ee32a932c74ae744.zip
Moving various x86 HWIntrinsicInfo lookup methods to be static methods on HWIntrinsicInfo
Diffstat (limited to 'src/jit/lsraxarch.cpp')
-rw-r--r--src/jit/lsraxarch.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/jit/lsraxarch.cpp b/src/jit/lsraxarch.cpp
index 96af2f6d8a..15103100a4 100644
--- a/src/jit/lsraxarch.cpp
+++ b/src/jit/lsraxarch.cpp
@@ -2290,11 +2290,11 @@ int LinearScan::BuildSIMD(GenTreeSIMD* simdTree)
//
int LinearScan::BuildHWIntrinsic(GenTreeHWIntrinsic* intrinsicTree)
{
- NamedIntrinsic intrinsicID = intrinsicTree->gtHWIntrinsicId;
+ NamedIntrinsic intrinsicId = intrinsicTree->gtHWIntrinsicId;
var_types baseType = intrinsicTree->gtSIMDBaseType;
- InstructionSet isa = Compiler::isaOfHWIntrinsic(intrinsicID);
- HWIntrinsicCategory category = Compiler::categoryOfHWIntrinsic(intrinsicID);
- HWIntrinsicFlag flags = Compiler::flagsOfHWIntrinsic(intrinsicID);
+ InstructionSet isa = HWIntrinsicInfo::lookupIsa(intrinsicId);
+ HWIntrinsicCategory category = HWIntrinsicInfo::lookupCategory(intrinsicId);
+ HWIntrinsicFlag flags = HWIntrinsicInfo::lookupFlags(intrinsicId);
int numArgs = Compiler::numArgsOfHWIntrinsic(intrinsicTree);
if ((isa == InstructionSet_AVX) || (isa == InstructionSet_AVX2))
@@ -2355,7 +2355,7 @@ int LinearScan::BuildHWIntrinsic(GenTreeHWIntrinsic* intrinsicTree)
if ((category == HW_Category_IMM) && ((flags & HW_Flag_NoJmpTableIMM) == 0))
{
- if (Compiler::isImmHWIntrinsic(intrinsicID, lastOp) && !lastOp->isContainedIntOrIImmed())
+ if (Compiler::isImmHWIntrinsic(intrinsicId, lastOp) && !lastOp->isContainedIntOrIImmed())
{
assert(!lastOp->IsCnsIntOrI());
@@ -2375,7 +2375,7 @@ int LinearScan::BuildHWIntrinsic(GenTreeHWIntrinsic* intrinsicTree)
// Note that the default case for building uses will handle the RMW flag, but if the uses
// are built in the individual cases, buildUses is set to false, and any RMW handling (delayFree)
// must be handled within the case.
- switch (intrinsicID)
+ switch (intrinsicId)
{
case NI_SSE_CompareEqualOrderedScalar:
case NI_SSE_CompareEqualUnorderedScalar:
@@ -2598,7 +2598,7 @@ int LinearScan::BuildHWIntrinsic(GenTreeHWIntrinsic* intrinsicTree)
default:
{
- assert((intrinsicID > NI_HW_INTRINSIC_START) && (intrinsicID < NI_HW_INTRINSIC_END));
+ assert((intrinsicId > NI_HW_INTRINSIC_START) && (intrinsicId < NI_HW_INTRINSIC_END));
break;
}
}