[mlgo] Add ability to create feature-gated development features in regalloc advisor
authorAiden Grossman <agrossman154@yahoo.com>
Mon, 15 Aug 2022 22:48:40 +0000 (15:48 -0700)
committerMircea Trofin <mtrofin@google.com>
Mon, 15 Aug 2022 23:01:37 +0000 (16:01 -0700)
commit24cdf97d6354e1a93d9978b084566367fd60a5e6
tree77867a3d7d74682be9dc146f4e16466e29bf482e
parenta74b028f58b2878a8c5fc79d70acf6cdebc84175
[mlgo] Add ability to create feature-gated development features in regalloc advisor

Currently there is no way to add in development features to the ML
regalloc evict advisor which is useful to have when working on feature
engineering/improving the current model. This patch adds in the ability
to add in development features to the ML regalloc evict advisor which
are gated by a runtime flag and not added in at all if not compiled in
LLVM development mode. This sets the stage for future work where we are
planning on upstreaming some of the newer features that we are currently
experimenting with.

Reviewed By: mtrofin

Differential Revision: https://reviews.llvm.org/D131209
llvm/lib/CodeGen/MLRegallocEvictAdvisor.cpp