[all-commits] [llvm/llvm-project] ea9e47: `ForceFunctionAttrs`: support overriding attribute...

Puneeth via All-commits all-commits at lists.llvm.org
Thu Sep 7 15:39:54 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ea9e47d534fb396b5792bef26d669dc0c2618af0
      https://github.com/llvm/llvm-project/commit/ea9e47d534fb396b5792bef26d669dc0c2618af0
  Author: Puneeth A R <puneethar6 at gmail.com>
  Date:   2023-09-07 (Thu, 07 Sep 2023)

  Changed paths:
    M llvm/lib/Transforms/IPO/ForceFunctionAttrs.cpp
    A llvm/test/Transforms/ForcedFunctionAttrs/DoesNotExist.csv
    A llvm/test/Transforms/ForcedFunctionAttrs/FunctionAnnotation.csv
    A llvm/test/Transforms/ForcedFunctionAttrs/FunctionAnnotator.ll

  Log Message:
  -----------
  `ForceFunctionAttrs`: support overriding attributes via csv file

Update `ForceFunctionAttrs` pass to optionally take its input from a csv file, for example, function-level optimization attributes. A subsequent patch will enable the pass pipeline to be aware of these attributes, and this pass will be used to test that is the case. Eventually, the annotations would be driven by an agent, e.g. a machine learning-based policy.

This patch is a part of GSoC 2023, more details can be found [[ https://summerofcode.withgoogle.com/programs/2023/projects/T8rB84Sr | here ]]

Reviewed By: mtrofin, aeubanks

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




More information about the All-commits mailing list