[all-commits] [llvm/llvm-project] 01700c: Store an Identifier instead of a StringRef for the...

Mehdi Amini via All-commits all-commits at lists.llvm.org
Wed Sep 2 12:15:07 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 01700c45eb22d848dd1dd980d7d46ae9aa034ade
      https://github.com/llvm/llvm-project/commit/01700c45eb22d848dd1dd980d7d46ae9aa034ade
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2020-09-02 (Wed, 02 Sep 2020)

  Changed paths:
    M mlir/include/mlir/IR/Identifier.h
    M mlir/include/mlir/IR/OperationSupport.h
    M mlir/lib/IR/MLIRContext.cpp
    M mlir/lib/IR/Operation.cpp
    M mlir/lib/Parser/Parser.cpp

  Log Message:
  -----------
  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




More information about the All-commits mailing list