1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/test
Dylan McKay ab1efa5f6d Add default address space for functions to the data layout (1/3)
Summary:
This adds initial support for letting targets specify which address
spaces their functions should reside in by default.

If a function is created by a frontend, it will get the default address space specified in the DataLayout, unless the frontend explicitly uses a more general `llvm::Function` constructor. Function address spaces will become a part of the bitcode and textual IR forms, as we do not have access to a data layout whilst parsing LL.

It will be possible to write IR that explicitly has `addrspace(n)` on a function. In this case, the function will reside in the specified space, ignoring the default in the DL.

This is the first step towards placing functions into the correct
address space for Harvard architectures.

Full patchset
* Add program address space to data layout D37052
* Require address space to be specified when creating functions D37054
* [clang] Require address space to be specified when creating functions D37057

Reviewers: pcc, arsenm, kparzysz, hfinkel, theraven

Reviewed By: theraven

Subscribers: arichardson, simoncook, rengolin, wdng, uabelho, bjope, asb, llvm-commits

Differential Revision: https://reviews.llvm.org/D37052

llvm-svn: 325479
2018-02-19 09:56:22 +00:00
..
Analysis
Assembler Add default address space for functions to the data layout (1/3) 2018-02-19 09:56:22 +00:00
Bindings
Bitcode
BugPoint
CodeGen [AArch64][GlobalISel] Fix an assert fail/miscompile when fp16 types are copied 2018-02-18 17:10:49 +00:00
DebugInfo [DebugInfo][FastISel] Fix dropping dbg.value() 2018-02-17 16:42:54 +00:00
Examples
ExecutionEngine
Feature
FileCheck
Instrumentation
Integer
JitListener
Linker
LTO
MC [X86][3DNow!] Add PFRCP reg-reg disassembler test case (PR21168) 2018-02-17 14:58:16 +00:00
Object AMDGPU: Bring elf flags in sync with the spec 2018-02-16 22:33:59 +00:00
ObjectYAML
Other
SafepointIRVerifier
SymbolRewriter
TableGen [GISel]: Make GlobalISelEmitter rule prioritization compatible with selectionDAG 2018-02-16 22:37:15 +00:00
ThinLTO/X86 Revert: [llvm] r325448 - [ThinLTO] Add GraphTraits for FunctionSummaries 2018-02-18 00:01:36 +00:00
tools [dwarfdump] Fix spurious verification errors for DW_AT_location attributes 2018-02-17 13:06:37 +00:00
Transforms [PatternMatch, InstSimplify] enhance m_AllOnes() to ignore undef elements in vectors 2018-02-18 18:05:08 +00:00
Unit
Verifier
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg.py
lit.site.cfg.py.in
TestRunner.sh