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