HomePhabricator

Store an Identifier instead of a StringRef for the OperationName inside an…

Authored by mehdi_amini on Sep 2 2020, 12:10 PM.

Description

Store an Identifier instead of a StringRef for the OperationName inside an AbstractOperation (NFC)

Instead of storing a StringRef, we keep an Identifier which otherwise requires a lock on the context to retrieve.
This will allow to get an Identifier for any registered Operation for "free".

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D86994