This is an archive of the discontinued LLVM Phabricator instance.

[ODS] Extra Concrete Declarations and Definitions under Traits
AbandonedPublic

Authored by amandatang on Jul 6 2023, 6:22 PM.

Details

Summary

Support extra concrete class declarations and definitions under NativeTrait that get injected into the class that specifies the trait. Extra declarations and definitions can be passed in as template arguments for NativeOpTraitNativeAttrTrait and NativeTypeTrait.

Usage examples of this feature include:

  • Creating a wrapper Trait for authoring inferReturnTypes with the OpAdaptor by specifying necessary Op specific declarations and definitions directly in the trait
  • Refactoring the InferTensorType trait

Diff Detail

Event Timeline

amandatang created this revision.Jul 6 2023, 6:22 PM
Herald added a project: Restricted Project. · View Herald Transcript
amandatang requested review of this revision.Jul 6 2023, 6:22 PM
amandatang retitled this revision from Summary: Support extra concrete class declarations and definitions under NativeTrait that get injected into the class that specifies the trait. Extra declarations and definitions can be passed in as template arguments for NativeOpTrait... to Extra Concrete Declarations and Definitions under Traits.Jul 6 2023, 6:24 PM
amandatang edited the summary of this revision. (Show Details)
amandatang added a reviewer: jpienaar.
amandatang retitled this revision from Extra Concrete Declarations and Definitions under Traits to [ODS] Extra Concrete Declarations and Definitions under Traits.
amandatang abandoned this revision.Jul 6 2023, 6:34 PM