[all-commits] [llvm/llvm-project] c94c5b: Introduce a GCStatepointInst type analogous to Int...

Philip Reames via All-commits all-commits at lists.llvm.org
Wed May 27 17:25:48 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c94c5bf9cce8a4c7ad5e8abbc8f21bad5cf6b889
      https://github.com/llvm/llvm-project/commit/c94c5bf9cce8a4c7ad5e8abbc8f21bad5cf6b889
  Author: Philip Reames <listmail at philipreames.com>
  Date:   2020-05-27 (Wed, 27 May 2020)

  Changed paths:
    M llvm/include/llvm/IR/Statepoint.h
    M llvm/lib/IR/Statepoint.cpp

  Log Message:
  -----------
  Introduce a GCStatepointInst type analogous to IntrinsicInst subclasses

Back when we had CallSite, we implemented the current Statepoint/ImmutableStatepoint structure in analogous manner.  Now that CallSite has been removed, the structure used for statepoints looks decidely out of place.  gc.statepoint is one of the small handful of intrinsics which are invokable.  Because of this, it can't subclass IntrinsicInst as is idiomatic.

This change simply introduces the GCStatepointInst class, restructures the existing Statepoint/ImmutableStatepoint types to wrap it.  I will be landing a series of changes to sink functionality into GCStatepointInst and updating callers to be more idiomatic.




More information about the All-commits mailing list