From 296e47734e62e8ddb0a05b8c9a139062a925bbe3 Mon Sep 17 00:00:00 2001 From: Mircea Trofin Date: Mon, 15 Jun 2020 16:46:21 -0700 Subject: [PATCH] [llvm][NFC] Fix license on InlineFeaturesAnalysis.{h|cpp} Summary: Also fixed the InlineAdvisor.cpp license. Reviewers: rriddle Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D81896 --- llvm/include/llvm/Analysis/InlineFeaturesAnalysis.h | 8 ++++++++ llvm/lib/Analysis/InlineAdvisor.cpp | 7 +++---- llvm/lib/Analysis/InlineFeaturesAnalysis.cpp | 13 +++++++++++++ 3 files changed, 24 insertions(+), 4 deletions(-) diff --git a/llvm/include/llvm/Analysis/InlineFeaturesAnalysis.h b/llvm/include/llvm/Analysis/InlineFeaturesAnalysis.h index 694cae34bc75..cc3f96c424e9 100644 --- a/llvm/include/llvm/Analysis/InlineFeaturesAnalysis.h +++ b/llvm/include/llvm/Analysis/InlineFeaturesAnalysis.h @@ -1,3 +1,11 @@ +//===- InlineFeaturesAnalysis.h - ML Policy Feature extraction -*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + #ifndef LLVM_INLINEFEATURESANALYSIS_H_ #define LLVM_INLINEFEATURESANALYSIS_H_ diff --git a/llvm/lib/Analysis/InlineAdvisor.cpp b/llvm/lib/Analysis/InlineAdvisor.cpp index d5b71f644d80..d3cd703385f4 100644 --- a/llvm/lib/Analysis/InlineAdvisor.cpp +++ b/llvm/lib/Analysis/InlineAdvisor.cpp @@ -1,9 +1,8 @@ //===- InlineAdvisor.cpp - analysis pass implementation -------------------===// // -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // diff --git a/llvm/lib/Analysis/InlineFeaturesAnalysis.cpp b/llvm/lib/Analysis/InlineFeaturesAnalysis.cpp index 013b8bbada34..90f521bbaab4 100644 --- a/llvm/lib/Analysis/InlineFeaturesAnalysis.cpp +++ b/llvm/lib/Analysis/InlineFeaturesAnalysis.cpp @@ -1,3 +1,16 @@ +//===- InlineFeaturesAnalysis.cpp - Feature extraction for ML Policies ----===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// +// +// This file implements an analysis extracting function features, which may be +// used by ML-driven policies, for example. +// +//===----------------------------------------------------------------------===// + #include "llvm/Analysis/InlineFeaturesAnalysis.h" #include "llvm/IR/Instructions.h"