Searched refs:llvm (Results 51 - 75 of 375) sorted by relevance

1234567891011>>

/frameworks/compile/mclinker/lib/Target/X86/
H A DX86GNUInfo.h13 #include <llvm/Support/ELF.h>
19 explicit X86_32GNUInfo(const llvm::Triple& pTriple) : GNUInfo(pTriple) {}
21 uint32_t machine() const { return llvm::ELF::EM_386; }
32 explicit X86_64GNUInfo(const llvm::Triple& pTriple) : GNUInfo(pTriple) {}
34 uint32_t machine() const { return llvm::ELF::EM_X86_64; }
H A DX86LDBackend.cpp24 #include <llvm/ADT/StringRef.h>
25 #include <llvm/ADT/Triple.h>
26 #include <llvm/Support/Casting.h>
27 #include <llvm/Support/Dwarf.h>
47 llvm::Triple::ArchType arch = pConfig.targets().triple().getArch();
48 assert(arch == llvm::Triple::x86 || arch == llvm::Triple::x86_64);
49 if (arch == llvm::Triple::x86 ||
50 pConfig.targets().triple().getEnvironment() == llvm::Triple::GNUX32) {
53 if (arch == llvm
[all...]
/frameworks/compile/slang/StripUnkAttr/
H A Dstrip_unknown_attributes_pass.cpp26 bool StripUnknownAttributes::runOnFunction(llvm::Function &F) {
31 bool StripUnknownAttributes::runOnModule(llvm::Module &M) {
33 for (llvm::Module::iterator I = M.begin(), E = M.end(); I != E; ++I) {
40 llvm::ModulePass * createStripUnknownAttributesPass() {
46 static llvm::RegisterPass<StripUnknownAttributes> RPSUA(
/frameworks/compile/libbcc/lib/
H A DRSScreenFunctionsPass.cpp23 #include <llvm/IR/Instructions.h>
24 #include <llvm/IR/Module.h>
25 #include <llvm/IR/Function.h>
26 #include <llvm/Pass.h>
33 class RSScreenFunctionsPass : public llvm::ModulePass {
49 bool isLegal(llvm::Function &F) {
52 // b. its name starts with "llvm." or
58 llvm::StringRef FName = F.getName();
59 if (FName.startswith("llvm."))
74 virtual void getAnalysisUsage(llvm
[all...]
H A DRSUtils.h22 #include <llvm/IR/Type.h>
23 #include <llvm/IR/DerivedTypes.h>
24 #include <llvm/ADT/StringRef.h>
30 static inline llvm::StringRef getUnsuffixedStructName(const llvm::StructType *T) {
45 // number (from llvm-rs-cc) to ensure that we are only ever building modern
82 static inline enum RsDataType getRsDataTypeForType(const llvm::Type *T) {
84 const llvm::StringRef StructName = getUnsuffixedStructName(llvm::dyn_cast<const llvm
[all...]
H A DRSEmbedInfo.cpp30 #include <llvm/IR/DerivedTypes.h>
31 #include <llvm/IR/Function.h>
32 #include <llvm/IR/Metadata.h>
33 #include <llvm/IR/Instructions.h>
34 #include <llvm/IR/IRBuilder.h>
35 #include <llvm/IR/Module.h>
36 #include <llvm/Pass.h>
37 #include <llvm/Support/raw_ostream.h>
38 #include <llvm/IR/Type.h>
51 class RSEmbedInfoPass : public llvm
[all...]
H A DCompiler.cpp30 #include <llvm/Analysis/Passes.h>
31 #include <llvm/Analysis/TargetTransformInfo.h>
32 #include <llvm/CodeGen/RegAllocRegistry.h>
33 #include <llvm/IR/LegacyPassManager.h>
34 #include <llvm/IR/Module.h>
35 #include <llvm/Support/TargetRegistry.h>
36 #include <llvm/Support/raw_ostream.h>
37 #include <llvm/IR/DataLayout.h>
38 #include <llvm/Target/TargetSubtargetInfo.h>
39 #include <llvm/Targe
[all...]
/frameworks/compile/mclinker/lib/Support/
H A Draw_ostream.cpp39 llvm::sys::fs::OpenFlags pFlags)
40 : llvm::raw_fd_ostream(pFilename, pErrorCode, pFlags),
48 : llvm::raw_fd_ostream(pFD, pShouldClose, pUnbuffered),
61 llvm::raw_ostream& raw_fd_ostream::changeColor(
62 enum llvm::raw_ostream::Colors pColor,
67 return llvm::raw_fd_ostream::changeColor(pColor, pBold, pBackground);
70 llvm::raw_ostream& raw_fd_ostream::resetColor() {
73 return llvm::raw_fd_ostream::resetColor();
76 llvm::raw_ostream& raw_fd_ostream::reverseColor() {
79 return llvm
[all...]
/frameworks/compile/mclinker/include/mcld/ADT/
H A DSizeTraits.h12 #include <llvm/Support/DataTypes.h>
13 #include <llvm/Support/ELF.h>
45 typedef llvm::ELF::Elf32_Addr Addr; // Program address
46 typedef llvm::ELF::Elf32_Off Off; // File offset
47 typedef llvm::ELF::Elf32_Half Half;
48 typedef llvm::ELF::Elf32_Word Word;
49 typedef llvm::ELF::Elf32_Sword Sword;
51 typedef llvm::ELF::Elf32_Ehdr Ehdr;
52 typedef llvm::ELF::Elf32_Shdr Shdr;
53 typedef llvm
[all...]
/frameworks/compile/mclinker/lib/LD/
H A DDiagnostic.cpp11 #include <llvm/Support/ErrorHandling.h>
12 #include <llvm/Support/raw_ostream.h>
13 #include <llvm/ADT/Twine.h>
33 llvm::StringRef desc = m_Engine.infoMap().getDescription(getID(), false);
106 llvm::report_fatal_error(
107 llvm::Twine("Mismatched {} in the diagnostic: ") +
108 llvm::Twine(getID()));
115 llvm::report_fatal_error(llvm::Twine("In diagnostic: ") +
116 llvm
[all...]
H A DELFReaderIf.cpp18 #include <llvm/ADT/StringRef.h>
19 #include <llvm/ADT/Twine.h>
20 #include <llvm/Support/ELF.h>
21 #include <llvm/Support/Host.h>
34 if (pShndx == llvm::ELF::SHN_ABS && result == ResolveInfo::Section) {
48 if (pShndx == llvm::ELF::SHN_UNDEF)
51 if (pShndx < llvm::ELF::SHN_LORESERVE) {
60 if (pShndx == llvm::ELF::SHN_ABS)
63 if (pShndx == llvm::ELF::SHN_COMMON)
66 if (pShndx >= llvm
[all...]
H A DTextDiagnosticPrinter.cpp13 #include <llvm/Support/Signals.h>
19 static const enum llvm::raw_ostream::Colors UnreachableColor =
20 llvm::raw_ostream::RED;
21 static const enum llvm::raw_ostream::Colors FatalColor =
22 llvm::raw_ostream::YELLOW;
23 static const enum llvm::raw_ostream::Colors ErrorColor = llvm::raw_ostream::RED;
24 static const enum llvm::raw_ostream::Colors WarningColor =
25 llvm::raw_ostream::MAGENTA;
26 static const enum llvm
[all...]
/frameworks/compile/mclinker/lib/Target/Mips/
H A DMipsELFDynamic.cpp17 #include <llvm/Support/ELF.h>
28 reserveOne(llvm::ELF::DT_PLTGOT);
30 reserveOne(llvm::ELF::DT_MIPS_RLD_VERSION);
31 reserveOne(llvm::ELF::DT_MIPS_FLAGS);
32 reserveOne(llvm::ELF::DT_MIPS_BASE_ADDRESS);
33 reserveOne(llvm::ELF::DT_MIPS_LOCAL_GOTNO);
34 reserveOne(llvm::ELF::DT_MIPS_SYMTABNO);
35 reserveOne(llvm::ELF::DT_MIPS_GOTSYM);
38 reserveOne(llvm::ELF::DT_MIPS_PLTGOT);
43 applyOne(llvm
[all...]
/frameworks/compile/slang/BitWriter_2_9/
H A DReaderWriter_2_9.h1 //===-- llvm/Bitcode/ReaderWriter.h - Bitcode reader/writers ----*- C++ -*-===//
19 namespace llvm { namespace
26 } // End llvm namespace
34 llvm::Module *getLazyBitcodeModule(llvm::MemoryBuffer *Buffer,
35 llvm::LLVMContext& Context,
43 std::string getBitcodeTargetTriple(llvm::MemoryBuffer *Buffer,
44 llvm::LLVMContext& Context,
50 llvm::Module *ParseBitcodeFile(llvm
[all...]
H A DBitcodeWriterPass.cpp15 #include "llvm/IR/Function.h"
16 #include "llvm/IR/Instructions.h"
17 #include "llvm/IR/Module.h"
18 #include "llvm/Pass.h"
19 using namespace llvm;
44 llvm::ModulePass *llvm_2_9::createBitcodeWriterPass(llvm::raw_ostream &Str) {
/frameworks/compile/slang/BitWriter_2_9_func/
H A DReaderWriter_2_9_func.h1 //===-- llvm/Bitcode/ReaderWriter.h - Bitcode reader/writers ----*- C++ -*-===//
19 namespace llvm { namespace
26 } // End llvm namespace
34 llvm::Module *getLazyBitcodeModule(llvm::MemoryBuffer *Buffer,
35 llvm::LLVMContext& Context,
43 std::string getBitcodeTargetTriple(llvm::MemoryBuffer *Buffer,
44 llvm::LLVMContext& Context,
50 llvm::Module *ParseBitcodeFile(llvm
[all...]
H A DBitcodeWriterPass.cpp15 #include "llvm/IR/Function.h"
16 #include "llvm/IR/Instructions.h"
17 #include "llvm/IR/Module.h"
18 #include "llvm/Pass.h"
19 using namespace llvm;
44 llvm::ModulePass *llvm_2_9_func::createBitcodeWriterPass(llvm::raw_ostream &Str) {
/frameworks/compile/slang/BitWriter_3_2/
H A DReaderWriter_3_2.h1 //===-- llvm/Bitcode/ReaderWriter.h - Bitcode reader/writers ----*- C++ -*-===//
19 namespace llvm { namespace
26 } // End llvm namespace
34 llvm::Module *getLazyBitcodeModule(llvm::MemoryBuffer *Buffer,
35 llvm::LLVMContext& Context,
43 std::string getBitcodeTargetTriple(llvm::MemoryBuffer *Buffer,
44 llvm::LLVMContext& Context,
50 llvm::Module *ParseBitcodeFile(llvm
[all...]
/frameworks/compile/libbcc/include/bcc/
H A DBCCContext.h20 namespace llvm { namespace
39 llvm::LLVMContext &getLLVMContext();
40 const llvm::LLVMContext &getLLVMContext() const;
H A DScript.h22 #include <llvm/Support/CodeGen.h>
25 namespace llvm { namespace
35 typedef llvm::Module *(*RSLinkRuntimeCallback)(bcc::Script *, llvm::Module *,
36 llvm::Module *);
45 llvm::CodeGenOpt::Level mOptimizationLevel;
74 void setOptimizationLevel(llvm::CodeGenOpt::Level pOptimizationLevel) {
78 llvm::CodeGenOpt::Level getOptimizationLevel() const {
/frameworks/compile/mclinker/include/mcld/LD/
H A DEhFrameReader.h13 #include <llvm/ADT/StringRef.h>
14 #include <llvm/Support/DataTypes.h>
59 llvm::StringRef pRegion,
67 llvm::StringRef pData) const;
70 llvm::StringRef pRegion,
74 llvm::StringRef pRegion,
78 llvm::StringRef pRegion,
82 llvm::StringRef pRegion,
92 llvm::StringRef pData) const;
/frameworks/compile/mclinker/lib/Target/AArch64/
H A DAArch64ELFDynamic.cpp28 reserveOne(llvm::ELF::DT_PLTGOT);
31 reserveOne(llvm::ELF::DT_PLTGOT);
39 applyOne(llvm::ELF::DT_PLTGOT, pFormat.getGOT().addr());
42 applyOne(llvm::ELF::DT_PLTGOT, pFormat.getGOTPLT().addr());
/frameworks/compile/mclinker/lib/Target/AArch64/TargetInfo/
H A DAArch64TargetInfo.cpp18 mcld::RegisterTarget<llvm::Triple::aarch64> X(TheAArch64Target, "aarch64");
/frameworks/compile/mclinker/lib/Target/Hexagon/TargetInfo/
H A DHexagonTargetInfo.cpp18 mcld::RegisterTarget<llvm::Triple::hexagon> X(TheHexagonTarget, "hexagon");
/frameworks/compile/slang/
H A Dslang_backend.h22 #include "llvm/IR/LegacyPassManager.h"
24 #include "llvm/Support/raw_ostream.h"
33 namespace llvm { namespace
63 llvm::Module *mpModule;
66 llvm::raw_ostream *mpOS;
75 llvm::legacy::FunctionPassManager *mPerFunctionPasses;
77 llvm::legacy::PassManager *mPerModulePasses;
79 llvm::legacy::FunctionPassManager *mCodeGenPasses;
81 llvm::buffer_ostream mBufferOutStream;
97 llvm
[all...]

Completed in 979 milliseconds

1234567891011>>