Skip to content

Amd common merge 161121 #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 128 commits into from
Nov 29, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
128 commits
Select commit Hold shift + click to select a range
9754b3b
[lli] Factor out error handling. NFCI.
dcci Nov 17, 2016
5ef1278
[lli] Prefer `exit(1)` to `return 1` for consistency.
dcci Nov 17, 2016
46f8597
[CUDA] Update docs; CUDA 8.0 is supported as of a while ago.
Nov 18, 2016
e65e5dd
[CUDA] Update docs to indicate that MacOS is now supported.
Nov 18, 2016
dc5eb21
Add an option to disable libedit
yuyichao Nov 18, 2016
fdec4f5
[AVX-512] Support FCOPYSIGN for v16f32 and v8f64
topperc Nov 18, 2016
3d85988
[Docs][TableGen] Remove reference to tablegen supporting octal intege…
topperc Nov 18, 2016
bc5bb8c
convert bpf assembler to look like kernel verifier output
4ast Nov 18, 2016
3962c3a
MachineOperand: Add dump() method
MatzeB Nov 18, 2016
fde9b8b
Object: Simplify; remove unnecessary use of unique_ptr.
pcc Nov 18, 2016
cbafc58
AMDGPU: Fix crash on illegal type for inlineasm
arsenm Nov 18, 2016
94dac3b
AMDGPU: Move redundant setting of inst properties
arsenm Nov 18, 2016
e5e77e4
[AVX-512] Replace masked 16-bit element variable shift intrinsics wit…
topperc Nov 18, 2016
35b775d
[InstCombine][AVX-512] Teach InstCombineCalls how to handle the intri…
topperc Nov 18, 2016
d1894a1
Fix go binding to adapt the new attribute API
deadalnix Nov 18, 2016
072e86d
[PPC][DAGCombine] Convert SETCC to subtract when the result is zero e…
Nov 18, 2016
178e833
Fix typo in comment. NFC.
RKSimon Nov 18, 2016
f04d638
[X86][AVX2] Add v8i32->v8i64 mul test (PR30845)
RKSimon Nov 18, 2016
9f23214
Fix spelling mistakes in AMDGPU target comments. NFC.
RKSimon Nov 18, 2016
3d73fca
[Power9] Add patterns for vnegd, vnegw
Nov 18, 2016
546b063
Fix spelling mistakes in MIPS target comments. NFC.
RKSimon Nov 18, 2016
1e27a61
AMDGPU: Fix legalization of MUBUF instructions in shaders
nhaehnle Nov 18, 2016
f482b59
Cleanup function with clang-format. NFCI.
RKSimon Nov 18, 2016
8a56643
[simplifycfg][loop-simplify] Preserve loop metadata in 2 transformati…
fhahn Nov 18, 2016
a006842
AMDGPU/SI: Remove zero_extend patterns for i16 ops selected to 32-bit…
tstellarAMD Nov 18, 2016
eb33845
GlobalISel: Fix unconditional fallback with global isel abort is disa…
tstellarAMD Nov 18, 2016
0f37c5c
[X86][AVX512] Split AVX512F/AVX512VL tests to demonstrate missed int2…
RKSimon Nov 18, 2016
a60ff0d
[mips][msa] Implement f16 support
Nov 18, 2016
37f2389
[PPC] limit line width to 80 characters
Nov 18, 2016
ed72617
Add link-time detection of LLVM_ABI_BREAKING_CHECKS mismatch
joker-eph Nov 18, 2016
3e367e6
IRMover: Avoid accidentally mapping types from the destination module…
zmodem Nov 18, 2016
fc3b380
[DebugInfo] Fix some Clang-tidy modernize-use-default, modernize-use-…
EugeneZelenko Nov 18, 2016
8fb7aa0
[LTO] Add option to generate optimization records
anemet Nov 18, 2016
bd831c7
Fix test from r287353: don't use /dev/null
zmodem Nov 18, 2016
13892fc
AMDGPU: Fix unused variable warning
arsenm Nov 18, 2016
181c24a
[MIRPrinter] Print raw branch probabilities as expected by MIRParser
geoffberry Nov 18, 2016
9262f00
Timer: Track name and description.
MatzeB Nov 18, 2016
9df5d1c
Statistic/Timer: Include timers in PrintStatisticsJSON().
MatzeB Nov 18, 2016
c0aec7f
Revert "Add link-time detection of LLVM_ABI_BREAKING_CHECKS mismatch"
joker-eph Nov 18, 2016
24feb85
[MIRPrinter] XFAIL test for powerpc
geoffberry Nov 18, 2016
3a7f010
[LoopSimplify] Preserve LCSSA when removing edges from unreachable bl…
Nov 18, 2016
38ccacb
[Examples] Fix some Clang-tidy modernize-use-default and Include What…
EugeneZelenko Nov 18, 2016
d4e6a9b
[X86] Add knownbits concat_vector test
RKSimon Nov 18, 2016
3000aab
[SelectionDAG] Add knowbits support for CONCAT_VECTOR opcode
RKSimon Nov 18, 2016
5527d64
[AMDGPU] Change frexp.exp intrinsic to return i16 for f16 input
kzhuravl Nov 18, 2016
7fd026b
[CMake] LTO depends on intrinsics_gen
Nov 18, 2016
435a2cf
[CMake] llvm-profdata depends on intrinsics_gen
Nov 18, 2016
dafc355
[CMake] llvm-ar depends on intrinsics_gen
Nov 18, 2016
456e0ea
[CMake] llvm-lto depends on intrinsics_gen
Nov 18, 2016
b7195e7
[CMake] llvm-split depends on intrinsics_gen
Nov 18, 2016
c4506a3
[InstCombine] add tests to show likely unwanted select widening; NFC
rotateright Nov 18, 2016
7ee6add
[CMake] bugpoint depends on intrinsics_gen
Nov 18, 2016
f3fc283
[lit] When setting SDKROOT on Darwin, use '--sdk macosx' to find the …
kubamracek Nov 18, 2016
4ed3553
[CMake] sanstats depends on intrinsics_gen
Nov 18, 2016
fae8230
[CMake] verify-uselistorder depends on intrinsics_gen
Nov 18, 2016
420f51b
[AVR] Remove a variable which was unused in release mode
Nov 19, 2016
e208042
[CMake] Apply sandbox profile to target not directory
Nov 19, 2016
eeb5052
[AVR] Remove a bunch of unused variables
Nov 19, 2016
6f60be5
[CMake] llvm-dsymutil depends on intrinsics_gen
Nov 19, 2016
2eb4133
[CMake] lli depends on intrinsics_gen
Nov 19, 2016
ef6571d
[CMake] lli-child-target depends on intrinsics gen
Nov 19, 2016
2e7d7fa
[CMake] llc depends on intrinsics_gen
Nov 19, 2016
70a9767
[CMake] llvm-as depends on intrinsics_gen
Nov 19, 2016
9f6a4f3
[CMake] llvm-bcanalyzer depends on intrinsics_gen
Nov 19, 2016
801fb8c
[CMake] bugpoint-passes depends on intrinsics_gen
Nov 19, 2016
2553460
[CMake] llvm-stress depends on intrinsics_gen
Nov 19, 2016
34c6cea
[CMake] llvm-diff depends on intrinsics_gen
Nov 19, 2016
11f7af9
[CMake] llvm-dis depends on intrinsics_gen
Nov 19, 2016
f079d1b
[CMake] llvm-dwp depends on intrinsics_gen
Nov 19, 2016
4339d8b
[CMake] llvm-extract depends on intrinsics_gen
Nov 19, 2016
f11a790
[CMake] llvm-link depends on intrinsics_gen
Nov 19, 2016
252aa32
[CMake] llvm-nm depends on intrinsics_gen
Nov 19, 2016
f6f5514
[CMake] opt depends on intrinsics_gen
Nov 19, 2016
c466a4a
[CMake] llvm-lto2 depends on intrinsics_gen
Nov 19, 2016
90085b5
[tablegen] Merge duplicate definitions of getMinimalTypeForRange. NFC.
dsandersllvm Nov 19, 2016
b313c74
Check that emitted instructions meet their predicates on all targets …
dsandersllvm Nov 19, 2016
8417728
Try to fix unused variable warning on lld-x86_64-darwin13 after r287439.
dsandersllvm Nov 19, 2016
c170429
Try again to fix unused variable warning on lld-x86_64-darwin13 after…
dsandersllvm Nov 19, 2016
aea6373
[X86] Simplify some code a little by removing a dulicate variable and…
topperc Nov 19, 2016
cee7f67
[X86][AVX512] Added some more complex v64i8 shuffles
RKSimon Nov 19, 2016
23f587b
[X86][AVX512] Add avx512vbmi tests
RKSimon Nov 19, 2016
1bb4b12
Change setDiagnosticsOutputFile to take a unique_ptr from a raw point…
joker-eph Nov 19, 2016
4bd62ab
[ThinLTO] Implement -pass-remarks-output in ThinLTOCodeGenerator
joker-eph Nov 19, 2016
c695a0b
[ThinLTO] Fix crash when importing an opaque type
joker-eph Nov 19, 2016
b799ae9
[X86][AVX512] Add VPERMV/VPERMV3 v64i8 byte shuffles on avx512vbmi ta…
RKSimon Nov 19, 2016
c6fddca
[X86][SSE] Improve PSHUFB lowering from either input
RKSimon Nov 19, 2016
c57d1d6
Give some helper classes/functions internal linkage. NFC.
d0k Nov 19, 2016
7f90f9e
Demangle: use direct member initialization (NFC)
compnerd Nov 20, 2016
e17a816
Demangle: replace custom typedef for std::string with std::string
compnerd Nov 20, 2016
21918ee
Demangle: remove unnecessary typedef for std::vector
compnerd Nov 20, 2016
902878b
Demangle: remove references to allocator for default allocator
compnerd Nov 20, 2016
8afc3ea
SHA1: unroll loop in hashBlock.
rui314 Nov 20, 2016
54ac8be
Fix buildbot.
rui314 Nov 20, 2016
533eaee
Style fix. NFC.
rui314 Nov 20, 2016
b665150
Attempt to fix big-endian buildbots.
rui314 Nov 20, 2016
e58b8cc
[bpf] add BPF disassembler
4ast Nov 20, 2016
308b046
ExceptionDemo: prefer headers over redeclarations
compnerd Nov 20, 2016
802a1be
ExceptionDemo: remove some undefined behaviour
compnerd Nov 20, 2016
15f7935
Fix file name resolution in nested response files
spavloff Nov 20, 2016
815a7e0
[X86][InlineAsm]Test commit.
Nov 20, 2016
88688e8
[X86] RegCall - Handling long double arguments
Nov 20, 2016
0f550ef
Fix comment typos. NFC.
RKSimon Nov 20, 2016
cc5e304
Fix spelling mistakes in SelectionDAG comments. NFC.
RKSimon Nov 20, 2016
431da84
Fix spelling mistakes in Transforms comments. NFC.
RKSimon Nov 20, 2016
84354d9
Fix spelling mistakes in Tools/Tests comments. NFC.
RKSimon Nov 20, 2016
84d1e91
Fix comment typos. NFC.
RKSimon Nov 20, 2016
d40266b
[X86][AVX512F] Add support for uint_to_fp v2i32 to v2f64 on AVX512F-o…
RKSimon Nov 20, 2016
2cd09f3
Strip trailing whitespace
RKSimon Nov 20, 2016
de04029
[X86][AVX512VL] Removed duplicate operation action
RKSimon Nov 20, 2016
c04ba41
[X86][AVX512] Add some initial VBMI target shuffle combine tests
RKSimon Nov 20, 2016
ccb6a0c
[X86][AVX512] Add support for VBMI VPERMV target shuffle combines
RKSimon Nov 20, 2016
73373f7
[X86][AVX512] Add support for VBMI VPERMV3 target shuffle combines
RKSimon Nov 20, 2016
d14ddee
[X86][AVX512] Combine unary + zero target shuffles to VPERMV3 with a …
RKSimon Nov 20, 2016
89ba3f2
Some instructions were missing, other implemented falsely. this patch…
Nov 20, 2016
57e5556
The 'vpmultishiftqb' instruction was implemented falsely, this patch …
Nov 20, 2016
b19918a
[AVX-512] Add tests for masked palignr/valignd/valignq shuffles, many…
topperc Nov 20, 2016
cbc1c49
[X86][SSE] Add some initial combine tests that could (should?) use PA…
RKSimon Nov 20, 2016
544f14c
[mips] Restrict tail call optimization
Nov 20, 2016
02ca2cb
[GlobalSplit] Port to the new pass manager.
dcci Nov 21, 2016
4fedda5
[XRay][AArch64] Implemented a test for the compile-time sleds emitted…
deanberris Nov 21, 2016
51f0596
[X86] Remove duplicate instructions for (v)movq and replace with patt…
topperc Nov 21, 2016
80f1fb4
[TableGen][ISel] Do a better job of factoring ScopeMatchers created d…
topperc Nov 21, 2016
db476db
[bpf] fix dwarf elf relocs and line numbers
4ast Nov 21, 2016
7362a66
[bpf] attempt to fix big-endian bots
4ast Nov 21, 2016
fd72811
[AVX-512] Add EVEX form of VMOVZPQILo2PQIZrm to load folding tables t…
topperc Nov 21, 2016
6ea9891
[Sparc] Use target name instead of namespace as prefix for MCRegister…
jacobbaungard Nov 21, 2016
9a24d63
AMDGPU/SI: Don't emit buffer_wbinvl1_vol on SI
tstellarAMD Nov 21, 2016
5c667a6
Merge branch 'amd-master' into amd-common
tstellarAMD Nov 29, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,8 @@ set(LLVM_TARGET_ARCH "host"

option(LLVM_ENABLE_TERMINFO "Use terminfo database if available." ON)

option(LLVM_ENABLE_LIBEDIT "Use libedit if available." ON)

option(LLVM_ENABLE_THREADS "Use threads if available." ON)

option(LLVM_ENABLE_ZLIB "Use zlib for compression/decompression if available." ON)
Expand Down
96 changes: 96 additions & 0 deletions bindings/go/llvm/ir.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ type (
Metadata struct {
C C.LLVMMetadataRef
}
Attribute struct {
C C.LLVMAttributeRef
}
Opcode C.LLVMOpcode
TypeKind C.LLVMTypeKind
Linkage C.LLVMLinkage
Expand All @@ -78,6 +81,7 @@ func (c ModuleProvider) IsNil() bool { return c.C == nil }
func (c MemoryBuffer) IsNil() bool { return c.C == nil }
func (c PassManager) IsNil() bool { return c.C == nil }
func (c Use) IsNil() bool { return c.C == nil }
func (c Attribute) IsNil() bool { return c.C == nil }

// helpers
func llvmTypeRefPtr(t *Type) *C.LLVMTypeRef { return (*C.LLVMTypeRef)(unsafe.Pointer(t)) }
Expand Down Expand Up @@ -315,6 +319,63 @@ func MDKindID(name string) (id int) {
return
}

//-------------------------------------------------------------------------
// llvm.Attribute
//-------------------------------------------------------------------------

func AttributeKindID(name string) (id uint) {
cname := C.CString(name)
defer C.free(unsafe.Pointer(cname))
id = uint(C.LLVMGetEnumAttributeKindForName(cname, C.size_t(len(name))))
return
}

func (c Context) CreateEnumAttribute(kind uint, val uint64) (a Attribute) {
a.C = C.LLVMCreateEnumAttribute(c.C, C.unsigned(kind), C.uint64_t(val))
return
}

func (a Attribute) GetEnumKind() (id int) {
id = int(C.LLVMGetEnumAttributeKind(a.C))
return
}

func (a Attribute) GetEnumValue() (val uint64) {
val = uint64(C.LLVMGetEnumAttributeValue(a.C))
return
}

func (c Context) CreateStringAttribute(kind string, val string) (a Attribute) {
ckind := C.CString(kind)
defer C.free(unsafe.Pointer(ckind))
cval := C.CString(val)
defer C.free(unsafe.Pointer(cval))
a.C = C.LLVMCreateStringAttribute(c.C,
ckind, C.unsigned(len(kind)),
cval, C.unsigned(len(val)))
return
}

func (a Attribute) GetStringKind() string {
length := C.unsigned(0)
ckind := C.LLVMGetStringAttributeKind(a.C, &length)
return C.GoStringN(ckind, C.int(length))
}

func (a Attribute) GetStringValue() string {
length := C.unsigned(0)
ckind := C.LLVMGetStringAttributeValue(a.C, &length)
return C.GoStringN(ckind, C.int(length))
}

func (a Attribute) IsEnum() bool {
return C.LLVMIsEnumAttribute(a.C) != 0;
}

func (a Attribute) IsString() bool {
return C.LLVMIsStringAttribute(a.C) != 0;
}

//-------------------------------------------------------------------------
// llvm.Module
//-------------------------------------------------------------------------
Expand Down Expand Up @@ -993,6 +1054,38 @@ func (v Value) SetGC(name string) {
defer C.free(unsafe.Pointer(cname))
C.LLVMSetGC(v.C, cname)
}
func (v Value) AddAttributeAtIndex(i int, a Attribute) {
C.LLVMAddAttributeAtIndex(v.C, C.LLVMAttributeIndex(i), a.C)
}
func (v Value) AddFunctionAttr(a Attribute) {
v.AddAttributeAtIndex(C.LLVMAttributeFunctionIndex, a);
}
func (v Value) GetEnumAttributeAtIndex(i int, kind uint) (a Attribute) {
a.C = C.LLVMGetEnumAttributeAtIndex(v.C, C.LLVMAttributeIndex(i), C.unsigned(kind))
return
}
func (v Value) GetEnumFunctionAttribute(kind uint) Attribute {
return v.GetEnumAttributeAtIndex(C.LLVMAttributeFunctionIndex, kind)
}
func (v Value) GetStringAttributeAtIndex(i int, kind string) (a Attribute) {
ckind := C.CString(kind)
defer C.free(unsafe.Pointer(ckind))
a.C = C.LLVMGetStringAttributeAtIndex(v.C, C.LLVMAttributeIndex(i),
ckind, C.unsigned(len(kind)))
return
}
func (v Value) RemoveEnumAttributeAtIndex(i int, kind uint) {
C.LLVMRemoveEnumAttributeAtIndex(v.C, C.LLVMAttributeIndex(i), C.unsigned(kind))
}
func (v Value) RemoveEnumFunctionAttribute(kind uint) {
v.RemoveEnumAttributeAtIndex(C.LLVMAttributeFunctionIndex, kind);
}
func (v Value) RemoveStringAttributeAtIndex(i int, kind string) {
ckind := C.CString(kind)
defer C.free(unsafe.Pointer(ckind))
C.LLVMRemoveStringAttributeAtIndex(v.C, C.LLVMAttributeIndex(i),
ckind, C.unsigned(len(kind)))
}
func (v Value) AddTargetDependentFunctionAttr(attr, value string) {
cattr := C.CString(attr)
defer C.free(unsafe.Pointer(cattr))
Expand Down Expand Up @@ -1082,6 +1175,9 @@ func (v Value) SetInstructionCallConv(cc CallConv) {
func (v Value) InstructionCallConv() CallConv {
return CallConv(C.LLVMCallConv(C.LLVMGetInstructionCallConv(v.C)))
}
func (v Value) AddCallSiteAttribute(i int, a Attribute) {
C.LLVMAddCallSiteAttribute(v.C, C.LLVMAttributeIndex(i), a.C)
}
func (v Value) SetInstrParamAlignment(i int, align int) {
C.LLVMSetInstrParamAlignment(v.C, C.unsigned(i), C.unsigned(align))
}
Expand Down
97 changes: 97 additions & 0 deletions bindings/go/llvm/ir_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
//===- ir_test.go - Tests for ir ------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file tests bindings for the ir component.
//
//===----------------------------------------------------------------------===//

package llvm

import (
"strings"
"testing"
)

func testAttribute(t *testing.T, name string) {
mod := NewModule("")
defer mod.Dispose()

ftyp := FunctionType(VoidType(), nil, false)
fn := AddFunction(mod, "foo", ftyp)

kind := AttributeKindID(name)
attr := mod.Context().CreateEnumAttribute(kind, 0)

fn.AddFunctionAttr(attr)
newattr := fn.GetEnumFunctionAttribute(kind)
if attr != newattr {
t.Errorf("got attribute mask %d, want %d", newattr, attr)
}

text := mod.String()
if !strings.Contains(text, " "+name+" ") {
t.Errorf("expected attribute '%s', got:\n%s", name, text)
}

fn.RemoveEnumFunctionAttribute(kind)
newattr = fn.GetEnumFunctionAttribute(kind)
if !newattr.IsNil() {
t.Errorf("got attribute mask %d, want 0", newattr)
}
}

func TestAttributes(t *testing.T) {
// Tests that our attribute constants haven't drifted from LLVM's.
attrTests := []string{
"sanitize_address",
"alwaysinline",
"builtin",
"byval",
"convergent",
"inalloca",
"inlinehint",
"inreg",
"jumptable",
"minsize",
"naked",
"nest",
"noalias",
"nobuiltin",
"nocapture",
"noduplicate",
"noimplicitfloat",
"noinline",
"nonlazybind",
"nonnull",
"noredzone",
"noreturn",
"nounwind",
"optnone",
"optsize",
"readnone",
"readonly",
"returned",
"returns_twice",
"signext",
"safestack",
"ssp",
"sspreq",
"sspstrong",
"sret",
"sanitize_thread",
"sanitize_memory",
"uwtable",
"zeroext",
"cold",
}

for _, name := range attrTests {
testAttribute(t, name)
}
}
4 changes: 3 additions & 1 deletion cmake/config-ix.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,10 @@ if( NOT PURE_WINDOWS AND NOT LLVM_USE_SANITIZER MATCHES "Memory.*")
set(HAVE_LIBZ 0)
endif()
# Skip libedit if using ASan as it contains memory leaks.
if (HAVE_HISTEDIT_H AND NOT LLVM_USE_SANITIZER MATCHES ".*Address.*")
if (LLVM_ENABLE_LIBEDIT AND HAVE_HISTEDIT_H AND NOT LLVM_USE_SANITIZER MATCHES ".*Address.*")
check_library_exists(edit el_init "" HAVE_LIBEDIT)
else()
set(HAVE_LIBEDIT 0)
endif()
if(LLVM_ENABLE_TERMINFO)
set(HAVE_TERMINFO 0)
Expand Down
10 changes: 5 additions & 5 deletions cmake/modules/AddLLVM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,6 @@ function(llvm_add_library name)
endif()
endif()

setup_dependency_debugging(${name} ${LLVM_COMMON_DEPENDS})

# Generate objlib
if((ARG_SHARED AND ARG_STATIC) OR ARG_OBJECT)
# Generate an obj library for both targets.
Expand Down Expand Up @@ -424,6 +422,8 @@ function(llvm_add_library name)
add_library(${name} STATIC ${ALL_FILES})
endif()

setup_dependency_debugging(${name} ${LLVM_COMMON_DEPENDS})

if(DEFINED windows_resource_file)
set_windows_version_resource_properties(${name} ${windows_resource_file})
set(windows_resource_file ${windows_resource_file} PARENT_SCOPE)
Expand Down Expand Up @@ -672,15 +672,15 @@ macro(add_llvm_executable name)
# it forces Xcode to properly link the static library.
list(APPEND ALL_FILES "${LLVM_MAIN_SRC_DIR}/cmake/dummy.cpp")
endif()

setup_dependency_debugging(${name} ${LLVM_COMMON_DEPENDS})

if( EXCLUDE_FROM_ALL )
add_executable(${name} EXCLUDE_FROM_ALL ${ALL_FILES})
else()
add_executable(${name} ${ALL_FILES})
endif()

setup_dependency_debugging(${name} ${LLVM_COMMON_DEPENDS})

if(NOT ARG_NO_INSTALL_RPATH)
llvm_setup_rpath(${name})
endif()
Expand Down Expand Up @@ -1397,5 +1397,5 @@ function(setup_dependency_debugging name)
set(deny_intrinsics_gen "(deny file* (literal \"${LLVM_BINARY_DIR}/include/llvm/IR/Intrinsics.gen\"))")

set(sandbox_command "sandbox-exec -p '(version 1) (allow default) ${deny_attributes_gen} ${deny_intrinsics_gen}'")
set_property(DIRECTORY PROPERTY RULE_LAUNCH_COMPILE ${sandbox_command})
set_target_properties(${name} PROPERTIES RULE_LAUNCH_COMPILE ${sandbox_command})
endfunction()
6 changes: 4 additions & 2 deletions docs/CompileCudaWithLLVM.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ for details. Note that clang `does not support
<https://llvm.org/bugs/show_bug.cgi?id=26966>`_ the CUDA toolkit as installed
by many Linux package managers; you probably need to install nvidia's package.

You will need CUDA 7.0 or 7.5 to compile with clang. CUDA 8 support is in the
works.
You will need CUDA 7.0, 7.5, or 8.0 to compile with clang.

CUDA compilation is supported on Linux, and on MacOS as of XXXX-XX-XX. Windows
support is planned but not yet in place.

Invoking clang
--------------
Expand Down
4 changes: 4 additions & 0 deletions docs/ReleaseNotes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ Non-comprehensive list of changes in this release

* Minimum compiler version to build has been raised to GCC 4.8 and VS 2015.

* The Timer related APIs now expect a Name and Description. When upgrading code
the previously used names should become descriptions and a short name in the
style of a programming language identifier should be added.

* ... next change ...

.. NOTE
Expand Down
3 changes: 0 additions & 3 deletions docs/TableGen/LangIntro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,6 @@ supported include:
Note that this is sized by the number of bits given and will not be
silently extended/truncated.

``07654321``
octal integer value (indicated by a leading 0)

``7``
decimal integer value

Expand Down
Loading