LCOV - code coverage report
Current view: top level - include/llvm/IR - UseListOrder.h (source / functions) Hit Total Coverage
Test: llvm-toolchain.info Lines: 3 3 100.0 %
Date: 2018-10-20 13:21:21 Functions: 0 0 -
Legend: Lines: hit not hit

          Line data    Source code
       1             : //===- llvm/IR/UseListOrder.h - LLVM Use List Order -------------*- C++ -*-===//
       2             : //
       3             : //                     The LLVM Compiler Infrastructure
       4             : //
       5             : // This file is distributed under the University of Illinois Open Source
       6             : // License. See LICENSE.TXT for details.
       7             : //
       8             : //===----------------------------------------------------------------------===//
       9             : //
      10             : // This file has structures and command-line options for preserving use-list
      11             : // order.
      12             : //
      13             : //===----------------------------------------------------------------------===//
      14             : 
      15             : #ifndef LLVM_IR_USELISTORDER_H
      16             : #define LLVM_IR_USELISTORDER_H
      17             : 
      18             : #include <cstddef>
      19             : #include <vector>
      20             : 
      21             : namespace llvm {
      22             : 
      23             : class Function;
      24             : class Value;
      25             : 
      26             : /// Structure to hold a use-list order.
      27        4790 : struct UseListOrder {
      28             :   const Value *V = nullptr;
      29             :   const Function *F = nullptr;
      30             :   std::vector<unsigned> Shuffle;
      31             : 
      32             :   UseListOrder(const Value *V, const Function *F, size_t ShuffleSize)
      33        2407 :       : V(V), F(F), Shuffle(ShuffleSize) {}
      34             : 
      35             :   UseListOrder() = default;
      36        2383 :   UseListOrder(UseListOrder &&) = default;
      37             :   UseListOrder &operator=(UseListOrder &&) = default;
      38             : };
      39             : 
      40             : using UseListOrderStack = std::vector<UseListOrder>;
      41             : 
      42             : } // end namespace llvm
      43             : 
      44             : #endif // LLVM_IR_USELISTORDER_H

Generated by: LCOV version 1.13