Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
Raise min LLVM version to 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
kinke committed Oct 15, 2018
1 parent 7f0e6cf commit aa5c90e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 41 deletions.
22 changes: 1 addition & 21 deletions src/ldc/intrinsics.di
Expand Up @@ -19,43 +19,26 @@ else
static assert(false, "This module is only valid for LDC");
}

version(LDC_LLVM_307)
version(LDC_LLVM_309)
{
}
else version(LDC_LLVM_308)
{
version = INTRINSICS_FROM_308;
}
else version(LDC_LLVM_309)
{
version = INTRINSICS_FROM_308;
version = INTRINSICS_FROM_309;
}
else version(LDC_LLVM_400)
{
version = INTRINSICS_FROM_308;
version = INTRINSICS_FROM_309;
version = INTRINSICS_FROM_400;
}
else version(LDC_LLVM_500)
{
version = INTRINSICS_FROM_308;
version = INTRINSICS_FROM_309;
version = INTRINSICS_FROM_400;
version = INTRINSICS_FROM_500;
}
else version(LDC_LLVM_600)
{
version = INTRINSICS_FROM_308;
version = INTRINSICS_FROM_309;
version = INTRINSICS_FROM_400;
version = INTRINSICS_FROM_500;
version = INTRINSICS_FROM_600;
}
else version(LDC_LLVM_700)
{
version = INTRINSICS_FROM_308;
version = INTRINSICS_FROM_309;
version = INTRINSICS_FROM_400;
version = INTRINSICS_FROM_500;
version = INTRINSICS_FROM_600;
Expand Down Expand Up @@ -409,14 +392,11 @@ pragma(LDC_intrinsic, "llvm.maxnum.f#")
// BIT MANIPULATION INTRINSICS
//

version(INTRINSICS_FROM_309)
{
/// The 'llvm.bitreverse' family of intrinsics is used to reverse the bitpattern
/// of an integer value; for example 0b10110110 becomes 0b01101101.
pragma(LDC_intrinsic, "llvm.bitreverse.i#")
T llvm_bitreverse(T)(T val)
if (__traits(isIntegral, T));
}

/// The 'llvm.bswap' family of intrinsics is used to byte swap integer values
/// with an even number of bytes (positive multiple of 16 bits). These are
Expand Down
21 changes: 1 addition & 20 deletions src/ldc/profile.di
Expand Up @@ -31,26 +31,7 @@ nothrow:
extern(C++) struct ProfileData {
// This has to match INSTR_PROF_DATA in profile-rt/InstrProfData.inc

version(LDC_LLVM_307)
{
uint NameSize;
uint NumCounters;
ulong FuncHash;
immutable(char)* Name;
ulong* Counters;
}
else version(LDC_LLVM_308)
{
uint NameSize;
uint NumCounters;
ulong FuncHash;
immutable(char)* Name;
ulong* Counters;
void* FunctionPointer;
void* Values;
ushort NumValueSites;
}
else version(LDC_LLVM_309)
version(LDC_LLVM_309)
{
ulong NameRef;
ulong FuncHash;
Expand Down

0 comments on commit aa5c90e

Please sign in to comment.