1fe6060f1SDimitry Andric //===--------------------- CustomBehaviour.cpp ------------------*- C++ -*-===// 2fe6060f1SDimitry Andric // 3fe6060f1SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4fe6060f1SDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 5fe6060f1SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6fe6060f1SDimitry Andric // 7fe6060f1SDimitry Andric //===----------------------------------------------------------------------===// 8fe6060f1SDimitry Andric /// \file 9fe6060f1SDimitry Andric /// 10fe6060f1SDimitry Andric /// This file implements methods from the CustomBehaviour interface. 11fe6060f1SDimitry Andric /// 12fe6060f1SDimitry Andric //===----------------------------------------------------------------------===// 13fe6060f1SDimitry Andric 14fe6060f1SDimitry Andric #include "llvm/MCA/CustomBehaviour.h" 15fe6060f1SDimitry Andric 16fe6060f1SDimitry Andric namespace llvm { 17fe6060f1SDimitry Andric namespace mca { 18fe6060f1SDimitry Andric 19fe6060f1SDimitry Andric CustomBehaviour::~CustomBehaviour() {} 20fe6060f1SDimitry Andric 21fe6060f1SDimitry Andric unsigned CustomBehaviour::checkCustomHazard(ArrayRef<InstRef> IssuedInst, 22fe6060f1SDimitry Andric const InstRef &IR) { 23fe6060f1SDimitry Andric // 0 signifies that there are no hazards that need to be waited on 24fe6060f1SDimitry Andric return 0; 25fe6060f1SDimitry Andric } 26fe6060f1SDimitry Andric 27*349cc55cSDimitry Andric std::vector<std::unique_ptr<View>> 28*349cc55cSDimitry Andric CustomBehaviour::getStartViews(llvm::MCInstPrinter &IP, 29*349cc55cSDimitry Andric llvm::ArrayRef<llvm::MCInst> Insts) { 30*349cc55cSDimitry Andric return std::vector<std::unique_ptr<View>>(); 31*349cc55cSDimitry Andric } 32*349cc55cSDimitry Andric 33*349cc55cSDimitry Andric std::vector<std::unique_ptr<View>> 34*349cc55cSDimitry Andric CustomBehaviour::getPostInstrInfoViews(llvm::MCInstPrinter &IP, 35*349cc55cSDimitry Andric llvm::ArrayRef<llvm::MCInst> Insts) { 36*349cc55cSDimitry Andric return std::vector<std::unique_ptr<View>>(); 37*349cc55cSDimitry Andric } 38*349cc55cSDimitry Andric 39*349cc55cSDimitry Andric std::vector<std::unique_ptr<View>> 40*349cc55cSDimitry Andric CustomBehaviour::getEndViews(llvm::MCInstPrinter &IP, 41*349cc55cSDimitry Andric llvm::ArrayRef<llvm::MCInst> Insts) { 42*349cc55cSDimitry Andric return std::vector<std::unique_ptr<View>>(); 43*349cc55cSDimitry Andric } 44*349cc55cSDimitry Andric 45fe6060f1SDimitry Andric } // namespace mca 46fe6060f1SDimitry Andric } // namespace llvm 47