xref: /freebsd-src/contrib/llvm-project/llvm/lib/MCA/CustomBehaviour.cpp (revision fe6060f10f634930ff71b7c50291ddc610da2475)
1*fe6060f1SDimitry Andric //===--------------------- CustomBehaviour.cpp ------------------*- C++ -*-===//
2*fe6060f1SDimitry Andric //
3*fe6060f1SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*fe6060f1SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
5*fe6060f1SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*fe6060f1SDimitry Andric //
7*fe6060f1SDimitry Andric //===----------------------------------------------------------------------===//
8*fe6060f1SDimitry Andric /// \file
9*fe6060f1SDimitry Andric ///
10*fe6060f1SDimitry Andric /// This file implements methods from the CustomBehaviour interface.
11*fe6060f1SDimitry Andric ///
12*fe6060f1SDimitry Andric //===----------------------------------------------------------------------===//
13*fe6060f1SDimitry Andric 
14*fe6060f1SDimitry Andric #include "llvm/MCA/CustomBehaviour.h"
15*fe6060f1SDimitry Andric 
16*fe6060f1SDimitry Andric namespace llvm {
17*fe6060f1SDimitry Andric namespace mca {
18*fe6060f1SDimitry Andric 
19*fe6060f1SDimitry Andric CustomBehaviour::~CustomBehaviour() {}
20*fe6060f1SDimitry Andric 
21*fe6060f1SDimitry Andric unsigned CustomBehaviour::checkCustomHazard(ArrayRef<InstRef> IssuedInst,
22*fe6060f1SDimitry Andric                                             const InstRef &IR) {
23*fe6060f1SDimitry Andric   // 0 signifies that there are no hazards that need to be waited on
24*fe6060f1SDimitry Andric   return 0;
25*fe6060f1SDimitry Andric }
26*fe6060f1SDimitry Andric 
27*fe6060f1SDimitry Andric } // namespace mca
28*fe6060f1SDimitry Andric } // namespace llvm
29