mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
8cc8aba19c
Summary: -march=bpf -> host endian -march=bpf_le -> little endian -match=bpf_be -> big endian Test Plan: v1 was tested by IBM s390 guys and appears to be working there. It bit rots too fast here. Reviewers: chandlerc, tstellarAMD Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D10177 llvm-svn: 239071
42 lines
1.1 KiB
C++
42 lines
1.1 KiB
C++
//===-- BPFMCAsmInfo.h - BPF asm properties -------------------*- C++ -*--====//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file contains the declaration of the BPFMCAsmInfo class.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_LIB_TARGET_BPF_MCTARGETDESC_BPFMCASMINFO_H
|
|
#define LLVM_LIB_TARGET_BPF_MCTARGETDESC_BPFMCASMINFO_H
|
|
|
|
#include "llvm/ADT/StringRef.h"
|
|
#include "llvm/MC/MCAsmInfo.h"
|
|
#include "llvm/ADT/Triple.h"
|
|
|
|
namespace llvm {
|
|
class Target;
|
|
class Triple;
|
|
|
|
class BPFMCAsmInfo : public MCAsmInfo {
|
|
public:
|
|
explicit BPFMCAsmInfo(const Triple &TT) {
|
|
if (TT.getArch() == Triple::bpf_be)
|
|
IsLittleEndian = false;
|
|
|
|
PrivateGlobalPrefix = ".L";
|
|
WeakRefDirective = "\t.weak\t";
|
|
|
|
UsesELFSectionDirectiveForBSS = true;
|
|
HasSingleParameterDotFile = false;
|
|
HasDotTypeDotSizeDirective = false;
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif
|