cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

clang.h (587B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2#ifndef PERF_UTIL_CLANG_H
      3#define PERF_UTIL_CLANG_H
      4
      5#include "llvm/ADT/StringRef.h"
      6#include "llvm/IR/LLVMContext.h"
      7#include "llvm/IR/Module.h"
      8#include "llvm/Option/Option.h"
      9#include <memory>
     10
     11namespace perf {
     12
     13using namespace llvm;
     14
     15std::unique_ptr<Module>
     16getModuleFromSource(opt::ArgStringList CFlags,
     17		    StringRef Name, StringRef Content);
     18
     19std::unique_ptr<Module>
     20getModuleFromSource(opt::ArgStringList CFlags,
     21		    StringRef Path);
     22
     23std::unique_ptr<llvm::SmallVectorImpl<char>>
     24getBPFObjectFromModule(llvm::Module *Module);
     25
     26}
     27#endif