Searched refs:llvm (Results 1 - 25 of 49) sorted by relevance

12

/art/compiler/llvm/
H A Dir_builder.h27 #include <llvm/IR/Constants.h>
28 #include <llvm/IR/DerivedTypes.h>
29 #include <llvm/IR/IRBuilder.h>
30 #include <llvm/IR/LLVMContext.h>
31 #include <llvm/IR/Type.h>
32 #include <llvm/Support/NoFolder.h>
38 namespace llvm { namespace in namespace:art
40 class InserterWithDexOffset : public ::llvm::IRBuilderDefaultInserter<true> {
44 void InsertHelper(::llvm::Instruction *I, const ::llvm
[all...]
H A Druntime_support_builder.h26 namespace llvm { namespace
35 namespace llvm { namespace in namespace:art
42 RuntimeSupportBuilder(::llvm::LLVMContext& context, ::llvm::Module& module, IRBuilder& irb);
45 virtual ::llvm::Value* EmitGetCurrentThread();
46 virtual ::llvm::Value* EmitLoadFromThreadOffset(int64_t offset, ::llvm::Type* type,
48 virtual void EmitStoreToThreadOffset(int64_t offset, ::llvm::Value* value,
50 virtual ::llvm::Value* EmitSetCurrentThread(::llvm
[all...]
H A Druntime_support_builder_x86.h23 namespace llvm { namespace in namespace:art
27 RuntimeSupportBuilderX86(::llvm::LLVMContext& context, ::llvm::Module& module, IRBuilder& irb)
31 virtual ::llvm::Value* EmitGetCurrentThread();
32 virtual ::llvm::Value* EmitLoadFromThreadOffset(int64_t offset, ::llvm::Type* type,
34 virtual void EmitStoreToThreadOffset(int64_t offset, ::llvm::Value* value,
36 virtual ::llvm::Value* EmitSetCurrentThread(::llvm::Value* thread);
39 } // namespace llvm
[all...]
H A Dutils_llvm.h20 #include <llvm/Analysis/Verifier.h>
25 #define VERIFY_LLVM_FUNCTION(func) ::llvm::verifyFunction(func, ::llvm::AbortProcessAction)
H A Druntime_support_builder_arm.h23 namespace llvm { namespace in namespace:art
27 RuntimeSupportBuilderARM(::llvm::LLVMContext& context, ::llvm::Module& module, IRBuilder& irb)
31 virtual ::llvm::Value* EmitGetCurrentThread();
32 virtual ::llvm::Value* EmitLoadFromThreadOffset(int64_t offset, ::llvm::Type* type,
34 virtual void EmitStoreToThreadOffset(int64_t offset, ::llvm::Value* value,
36 virtual ::llvm::Value* EmitSetCurrentThread(::llvm::Value* thread);
39 virtual void EmitLockObject(::llvm
[all...]
H A Druntime_support_builder_thumb2.h23 namespace llvm { namespace in namespace:art
27 RuntimeSupportBuilderThumb2(::llvm::LLVMContext& context, ::llvm::Module& module, IRBuilder& irb)
31 virtual void EmitLockObject(::llvm::Value* object);
34 } // namespace llvm
H A Dllvm_compilation_unit.cc24 #include <llvm/Target/TargetLibraryInfo.h>
34 #include <llvm/ADT/OwningPtr.h>
35 #include <llvm/ADT/StringSet.h>
36 #include <llvm/ADT/Triple.h>
37 #include <llvm/Analysis/CallGraph.h>
38 #include <llvm/Analysis/CallGraphSCCPass.h>
39 #include <llvm/Analysis/Dominators.h>
40 #include <llvm/Analysis/LoopInfo.h>
41 #include <llvm/Analysis/LoopPass.h>
42 #include <llvm/Analysi
90 namespace llvm { namespace in namespace:art
[all...]
H A Dir_builder.cc21 #include <llvm/IR/Module.h>
24 namespace llvm { namespace in namespace:art
31 IRBuilder::IRBuilder(::llvm::LLVMContext& context, ::llvm::Module& module,
36 ::llvm::Type* jobject_struct_type = module.getTypeByName("JavaObject");
41 ::llvm::Type* type = module.getTypeByName("Method");
57 ::llvm::Type* jenv_struct_type = ::llvm::StructType::create(context, "JEnv");
72 ::llvm::Type* IRBuilder::getJType(JType jty) {
110 ::llvm
[all...]
H A Dbackend_options.h20 #include <llvm/Support/CommandLine.h>
23 extern llvm::cl::opt<bool> EnableARMLongCalls; \
24 extern llvm::cl::opt<bool> ReserveR9;
37 #include "llvm/Config/Targets.def"
40 namespace llvm { namespace in namespace:art
44 #include "llvm/Config/Targets.def"
47 } // namespace llvm
H A Dgbc_expander.cc34 #include <llvm/ADT/STLExtras.h>
35 #include <llvm/IR/Intrinsics.h>
36 #include <llvm/IR/Metadata.h>
37 #include <llvm/Pass.h>
38 #include <llvm/Support/CFG.h>
39 #include <llvm/Support/InstIterator.h>
47 using ::art::llvm::IRBuilder;
48 using ::art::llvm::IntrinsicHelper;
49 using ::art::llvm::JType;
50 using ::art::llvm
3799 namespace llvm { namespace in namespace:art
[all...]
H A Dmd_builder.h22 #include "llvm/IR/MDBuilder.h"
26 namespace llvm { namespace
32 namespace llvm { namespace in namespace:art
34 typedef ::llvm::MDBuilder LLVMMDBuilder;
38 explicit MDBuilder(::llvm::LLVMContext& context)
44 // 64 and 4 are the llvm.expect's default values
49 ::llvm::MDNode* GetTBAASpecialType(TBAASpecialType special_ty);
50 ::llvm::MDNode* GetTBAAMemoryJType(TBAASpecialType special_ty, JType j_ty);
52 ::llvm::MDNode* GetBranchWeights(ExpectCond expect) {
58 ::llvm
[all...]
H A Druntime_support_builder_x86.cc24 #include <llvm/IR/DerivedTypes.h>
25 #include <llvm/IR/Function.h>
26 #include <llvm/IR/InlineAsm.h>
27 #include <llvm/IR/Module.h>
28 #include <llvm/IR/Type.h>
32 using ::llvm::CallInst;
33 using ::llvm::Function;
34 using ::llvm::FunctionType;
35 using ::llvm::InlineAsm;
36 using ::llvm
41 namespace llvm { namespace in namespace:art
[all...]
H A Dintrinsic_helper.cc21 #include <llvm/IR/Attributes.h>
22 #include <llvm/IR/DerivedTypes.h>
23 #include <llvm/IR/Function.h>
24 #include <llvm/IR/IRBuilder.h>
25 #include <llvm/IR/Intrinsics.h>
28 namespace llvm { namespace in namespace:art
40 static ::llvm::Type* GetLLVMTypeOfIntrinsicValType(IRBuilder& irb,
93 IntrinsicHelper::IntrinsicHelper(::llvm::LLVMContext& context,
94 ::llvm::Module& module) {
109 ::llvm
[all...]
H A Dcompiler_llvm.cc32 #include <llvm/LinkAllPasses.h>
33 #include <llvm/Support/ManagedStatic.h>
34 #include <llvm/Support/TargetSelect.h>
35 #include <llvm/Support/Threading.h>
44 llvm::LlvmCompilationUnit* llvm_info);
47 namespace llvm { namespace
57 llvm::llvm_start_multithreaded();
60 // llvm::TimePassesIsEnabled = true;
63 art::llvm::InitialBackendOptions();
68 llvm
103 namespace llvm { namespace in namespace:art
[all...]
H A Dintrinsic_helper.h22 #include <llvm/ADT/DenseMap.h>
24 namespace llvm { namespace
29 } // namespace llvm
32 namespace llvm { namespace in namespace:art
126 IntrinsicHelper(::llvm::LLVMContext& context, ::llvm::Module& module);
128 ::llvm::Function* GetIntrinsicFunction(IntrinsicId id) {
134 IntrinsicId GetIntrinsicId(const ::llvm::Function* func) const {
135 ::llvm::DenseMap<const ::llvm
[all...]
H A Druntime_support_builder_thumb2.cc25 #include <llvm/IR/DerivedTypes.h>
26 #include <llvm/IR/Function.h>
27 #include <llvm/IR/InlineAsm.h>
28 #include <llvm/IR/Module.h>
29 #include <llvm/IR/Type.h>
34 using ::llvm::BasicBlock;
35 using ::llvm::Function;
36 using ::llvm::FunctionType;
37 using ::llvm::InlineAsm;
38 using ::llvm
42 namespace llvm { namespace in namespace:art
[all...]
H A Druntime_support_builder.cc26 #include <llvm/IR/DerivedTypes.h>
27 #include <llvm/IR/Function.h>
28 #include <llvm/IR/Module.h>
29 #include <llvm/IR/Type.h>
31 using ::llvm::BasicBlock;
32 using ::llvm::CallInst;
33 using ::llvm::Function;
34 using ::llvm::Value;
37 namespace llvm { namespace in namespace:art
39 RuntimeSupportBuilder::RuntimeSupportBuilder(::llvm
[all...]
/art/runtime/
H A Delf_file.h23 #include <llvm/Support/ELF.h>
59 ::llvm::ELF::Elf32_Ehdr& GetHeader();
61 ::llvm::ELF::Elf32_Word GetProgramHeaderNum();
62 ::llvm::ELF::Elf32_Phdr& GetProgramHeader(::llvm::ELF::Elf32_Word);
63 ::llvm::ELF::Elf32_Phdr* FindProgamHeaderByType(::llvm::ELF::Elf32_Word type);
65 ::llvm::ELF::Elf32_Word GetSectionHeaderNum();
66 ::llvm::ELF::Elf32_Shdr& GetSectionHeader(::llvm
[all...]
H A Delf_file.cc72 if (file_length < sizeof(llvm::ELF::Elf32_Ehdr)) {
76 << sizeof(llvm::ELF::Elf32_Ehdr) << " bytes: " << file_->GetPath();
83 size_t elf_header_size = sizeof(llvm::ELF::Elf32_Ehdr);
115 dynamic_program_header_ = FindProgamHeaderByType(llvm::ELF::PT_DYNAMIC);
122 = reinterpret_cast<llvm::ELF::Elf32_Dyn*>(Begin() + GetDynamicProgramHeader().p_offset);
125 for (llvm::ELF::Elf32_Word i = 0; i < GetSectionHeaderNum(); i++) {
126 llvm::ELF::Elf32_Shdr& section_header = GetSectionHeader(i);
129 case llvm::ELF::SHT_SYMTAB: {
130 symtab_section_start_ = reinterpret_cast<llvm::ELF::Elf32_Sym*>(section_addr);
133 case llvm
[all...]
/art/compiler/sea_ir/code_gen/
H A Dcode_gen_data.cc18 #include <llvm/PassManager.h>
19 #include <llvm/Support/TargetRegistry.h>
20 #include <llvm/Support/FormattedStream.h>
21 #include <llvm/Target/TargetMachine.h>
22 #include <llvm/Transforms/IPO.h>
23 #include <llvm/Transforms/IPO/PassManagerBuilder.h>
34 ::llvm::raw_string_ostream out_stream(elf);
43 const ::llvm::Target* target =
44 ::llvm::TargetRegistry::lookupTarget(target_triple, errmsg);
49 ::llvm
[all...]
/art/compiler/
H A Delf_fixup.cc34 ::llvm::ELF::Elf32_Addr oatdata_address = ElfWriter::GetOatDataAddress(elf_file.get());
35 ::llvm::ELF::Elf32_Off base_address = oat_data_begin - oatdata_address;
83 for (::llvm::ELF::Elf32_Word i = 0; i < elf_file.GetDynamicNum(); i++) {
84 ::llvm::ELF::Elf32_Dyn& elf_dyn = elf_file.GetDynamic(i);
85 ::llvm::ELF::Elf32_Word d_tag = elf_dyn.d_tag;
89 case ::llvm::ELF::DT_PLTGOT:
90 case ::llvm::ELF::DT_HASH:
91 case ::llvm::ELF::DT_STRTAB:
92 case ::llvm::ELF::DT_SYMTAB:
93 case ::llvm
[all...]
/art/compiler/dex/portable/
H A Dmir_to_gbc.h25 #include "llvm/llvm_compilation_unit.h"
41 llvm::LlvmCompilationUnit* const llvm_compilation_unit);
47 llvm::LlvmCompilationUnit* llvm_compilation_unit)
79 ::llvm::BasicBlock* GetLLVMBlock(int id);
80 ::llvm::Value* GetLLVMValue(int s_reg);
81 void SetVregOnValue(::llvm::Value* val, int s_reg);
82 void DefineValueOnly(::llvm::Value* val, int s_reg);
83 void DefineValue(::llvm::Value* val, int s_reg);
84 ::llvm::Type* LlvmTypeFromLocRec(RegLocation loc);
86 ::llvm
[all...]
H A Dmir_to_gbc.cc19 #include <llvm/ADT/DepthFirstIterator.h>
20 #include <llvm/Analysis/Verifier.h>
21 #include <llvm/Bitcode/ReaderWriter.h>
22 #include <llvm/IR/Instruction.h>
23 #include <llvm/IR/Instructions.h>
24 #include <llvm/IR/Metadata.h>
25 #include <llvm/IR/Type.h>
26 #include <llvm/Support/Casting.h>
27 #include <llvm/Support/InstIterator.h>
28 #include <llvm/Suppor
[all...]
/art/compiler/dex/
H A Dfrontend.h28 namespace llvm { namespace
34 namespace llvm { namespace in namespace:art
88 ::llvm::LLVMContext* GetLLVMContext() {
92 ::llvm::Module* GetLLVMModule() {
96 art::llvm::IntrinsicHelper* GetIntrinsicHelper() {
100 art::llvm::IRBuilder* GetIRBuilder() {
105 UniquePtr< ::llvm::LLVMContext> llvm_context_;
106 ::llvm::Module* llvm_module_; // Managed by context_.
107 UniquePtr<art::llvm::IntrinsicHelper> intrinsic_helper_;
108 UniquePtr<art::llvm
[all...]
/art/compiler/jni/portable/
H A Djni_compiler.cc25 #include "llvm/compiler_llvm.h"
26 #include "llvm/ir_builder.h"
27 #include "llvm/llvm_compilation_unit.h"
28 #include "llvm/runtime_support_llvm_func.h"
29 #include "llvm/utils_llvm.h"
35 #include <llvm/ADT/SmallVector.h>
36 #include <llvm/IR/BasicBlock.h>
37 #include <llvm/IR/DerivedTypes.h>
38 #include <llvm/IR/Function.h>
39 #include <llvm/I
42 namespace llvm { namespace in namespace:art
[all...]

Completed in 356 milliseconds

12