OSDN Git Service

android-x86/external-llvm.git
4 years agoandroid: Target/AArch64: update sources list
Mauro Rossi [Fri, 20 Mar 2020 19:08:30 +0000 (20:08 +0100)]
android: Target/AArch64: update sources list

4 years agoandroid: Target/ARM: update sources list
Mauro Rossi [Fri, 20 Mar 2020 19:06:29 +0000 (20:06 +0100)]
android: Target/ARM: update sources list

4 years agoandroid: ExecutionEngine/JITLink: add support for libLLVMJITLink
Mauro Rossi [Fri, 20 Mar 2020 19:01:09 +0000 (20:01 +0100)]
android: ExecutionEngine/JITLink: add support for libLLVMJITLink

4 years agoandroid: Transforms/Scalar: update sources list
Mauro Rossi [Fri, 20 Mar 2020 17:14:45 +0000 (18:14 +0100)]
android: Transforms/Scalar: update sources list

4 years agoandroid: Remarks: add support for libLLVMRemarks
Mauro Rossi [Fri, 20 Mar 2020 17:11:25 +0000 (18:11 +0100)]
android: Remarks: add support for libLLVMRemarks

4 years agoandroid: ExecutionEngine/Orc: update sources list
Mauro Rossi [Fri, 20 Mar 2020 17:01:02 +0000 (18:01 +0100)]
android: ExecutionEngine/Orc: update sources list

4 years agoandroid: Transforms/InstCombine: update sources list
Mauro Rossi [Fri, 20 Mar 2020 15:57:55 +0000 (16:57 +0100)]
android: Transforms/InstCombine: update sources list

4 years agoandroid: CodeGen: update sources list
Mauro Rossi [Fri, 20 Mar 2020 15:53:24 +0000 (16:53 +0100)]
android: CodeGen: update sources list

4 years agoandroid: BinaryFormat: update sources list
Mauro Rossi [Fri, 20 Mar 2020 15:07:08 +0000 (16:07 +0100)]
android: BinaryFormat: update sources list

4 years agoandroid: Transforms/Vectorize: update sources list
Mauro Rossi [Fri, 20 Mar 2020 14:50:59 +0000 (15:50 +0100)]
android: Transforms/Vectorize: update sources list

4 years agoandroid: Transforms/Utils: update sources list
Mauro Rossi [Fri, 20 Mar 2020 14:48:01 +0000 (15:48 +0100)]
android: Transforms/Utils: update sources list

4 years agoandroid: DebugInfo/PDB: update sources list
Mauro Rossi [Fri, 20 Mar 2020 14:32:03 +0000 (15:32 +0100)]
android: DebugInfo/PDB: update sources list

4 years agoandroid: Support: update sources list
Mauro Rossi [Fri, 20 Mar 2020 14:18:33 +0000 (15:18 +0100)]
android: Support: update sources list

4 years agoandroid: Analysis: update sources list
Mauro Rossi [Fri, 20 Mar 2020 14:13:27 +0000 (15:13 +0100)]
android: Analysis: update sources list

4 years agoandroid: IPO: update sources list
Mauro Rossi [Fri, 20 Mar 2020 14:04:52 +0000 (15:04 +0100)]
android: IPO: update sources list

4 years agoandroid: Transforms/Instrumentation: update sources list
Mauro Rossi [Fri, 20 Mar 2020 14:01:04 +0000 (15:01 +0100)]
android: Transforms/Instrumentation: update sources list

4 years agoandroid: Bitstream/Reader: add support for libLLVMBitstreamReader
Mauro Rossi [Fri, 20 Mar 2020 13:42:00 +0000 (14:42 +0100)]
android: Bitstream/Reader: add support for libLLVMBitstreamReader

4 years agoandroid: MC: update sources list
Mauro Rossi [Fri, 20 Mar 2020 12:56:05 +0000 (13:56 +0100)]
android: MC: update sources list

4 years agoandroid: Object: update sources list
Mauro Rossi [Fri, 20 Mar 2020 12:48:17 +0000 (13:48 +0100)]
android: Object: update sources list

4 years agoandroid: IR: update sources list
Mauro Rossi [Fri, 20 Mar 2020 12:43:44 +0000 (13:43 +0100)]
android: IR: update sources list

4 years agoandroid: ToolDrivers: fix Attributes dependency
Mauro Rossi [Tue, 24 Mar 2020 21:43:45 +0000 (22:43 +0100)]
android: ToolDrivers: fix Attributes dependency

Fixes the following building error:

In file included from external/llvm90/lib/ToolDrivers/llvm-lib/LibDriver.cpp:18:
In file included from external/llvm90/include/llvm/Bitcode/BitcodeReader.h:19:
In file included from external/llvm90/include/llvm/IR/ModuleSummaryIndex.h:27:
In file included from external/llvm90/include/llvm/IR/Module.h:23:
external/llvm90/include/llvm/IR/Attributes.h:73:14: fatal error: 'llvm/IR/Attributes.inc' file not found
    #include "llvm/IR/Attributes.inc"
             ^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

4 years agoObject: fix 'suggest braces' related building error
Mauro Rossi [Fri, 20 Mar 2020 00:36:43 +0000 (01:36 +0100)]
Object: fix 'suggest braces' related building error

Fixes the following building error:

external/llvm90/lib/Object/MachOObjectFile.cpp:61:5:
error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
    "i386",   "x86_64", "x86_64h",  "armv4t",  "arm",    "armv5e",
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

4 years agoandroid: Target/ARM: fix Attributes and Intrinsics dependencies
Mauro Rossi [Fri, 20 Mar 2020 00:19:29 +0000 (01:19 +0100)]
android: Target/ARM: fix Attributes and Intrinsics dependencies

Needed to avoid following building errors:

In file included from external/llvm90/lib/Target/ARM/AsmParser/ARMAsmParser.cpp:10:
In file included from external/llvm90/lib/Target/ARM/AsmParser/../ARMBaseInstrInfo.h:19:
In file included from external/llvm90/lib/Transforms/Hello/../../../include/llvm/CodeGen/MachineBasicBlock.h:21:
In file included from external/llvm90/lib/Transforms/Hello/../../../include/llvm/CodeGen/MachineInstr.h:23:
In file included from external/llvm90/lib/Transforms/Hello/../../../include/llvm/Analysis/AliasAnalysis.h:44:
In file included from external/llvm90/lib/Transforms/Hello/../../../include/llvm/Analysis/MemoryLocation.h:20:
In file included from external/llvm90/lib/Transforms/Hello/../../../include/llvm/IR/Instructions.h:26:
external/llvm90/lib/Transforms/Hello/../../../include/llvm/IR/Attributes.h:73:14: fatal error: 'llvm/IR/Attributes.inc' file not found
    #include "llvm/IR/Attributes.inc"
             ^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

In file included from external/llvm90/lib/Target/ARM/AsmParser/ARMAsmParser.cpp:10:
In file included from external/llvm90/lib/Target/ARM/AsmParser/../ARMBaseInstrInfo.h:19:
In file included from external/llvm90/lib/Transforms/Hello/../../../include/llvm/CodeGen/MachineBasicBlock.h:21:
In file included from external/llvm90/lib/Transforms/Hello/../../../include/llvm/CodeGen/MachineInstr.h:25:
In file included from external/llvm90/lib/Transforms/Hello/../../../include/llvm/CodeGen/MachineOperand.h:18:
external/llvm90/lib/Transforms/Hello/../../../include/llvm/IR/Intrinsics.h:41:10: fatal error: 'llvm/IR/IntrinsicEnums.inc' file not found
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

In file included from external/llvm90/lib/Target/ARM/Disassembler/ARMDisassembler.cpp:9:
In file included from external/llvm90/lib/Target/ARM/Disassembler/../ARMBaseInstrInfo.h:19:
In file included from external/llvm90/lib/Transforms/Hello/../../../include/llvm/CodeGen/MachineBasicBlock.h:21:
In file included from external/llvm90/lib/Transforms/Hello/../../../include/llvm/CodeGen/MachineInstr.h:23:
In file included from external/llvm90/lib/Transforms/Hello/../../../include/llvm/Analysis/AliasAnalysis.h:44:
In file included from external/llvm90/lib/Transforms/Hello/../../../include/llvm/Analysis/MemoryLocation.h:20:
In file included from external/llvm90/lib/Transforms/Hello/../../../include/llvm/IR/Instructions.h:26:
external/llvm90/lib/Transforms/Hello/../../../include/llvm/IR/Attributes.h:73:14: fatal error: 'llvm/IR/Attributes.inc' file not found
    #include "llvm/IR/Attributes.inc"
             ^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

In file included from external/llvm90/lib/Target/ARM/Disassembler/ARMDisassembler.cpp:9:
In file included from external/llvm90/lib/Target/ARM/Disassembler/../ARMBaseInstrInfo.h:19:
In file included from external/llvm90/lib/Transforms/Hello/../../../include/llvm/CodeGen/MachineBasicBlock.h:21:
In file included from external/llvm90/lib/Transforms/Hello/../../../include/llvm/CodeGen/MachineInstr.h:25:
In file included from external/llvm90/lib/Transforms/Hello/../../../include/llvm/CodeGen/MachineOperand.h:18:
external/llvm90/lib/Transforms/Hello/../../../include/llvm/IR/Intrinsics.h:41:10: fatal error: 'llvm/IR/IntrinsicEnums.inc' file not found
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

4 years agoandroid: update build rules for llvm 9
Mauro Rossi [Thu, 19 Mar 2020 23:41:36 +0000 (00:41 +0100)]
android: update build rules for llvm 9

4 years agoDO NOT MERGE: android: translate Android.mk build rules for libLLVM90
Mauro Rossi [Tue, 24 Mar 2020 22:25:55 +0000 (23:25 +0100)]
DO NOT MERGE: android: translate Android.mk build rules for libLLVM90

These changes are applied to build external/llvm90 project
and avoid conflicts with external/llvm project
Changes in mesa main Android.mk are required for libLLVM90
shared library dependency and cflag -DMESA_LLVM_VERSION_STRING=\"9.0\"

The changelog is described by means of modules and variables
which needed to be renamed:

 #rename LLVM80 to LLVM90
find . -type f -name "*.mk" -exec sed -i 's/LLVM80/LLVM90/g' {} +

 #rename llvm80 to llvm90
find . -type f -name "*.mk" -exec sed -i 's/llvm80/llvm90/g' {} +

 #rename out80 to out90
find . -type f -name "*.mk" -exec sed -i 's/out80/out90/g' {} +

 #rename TBLGEN_TABLES80 to TBLGEN_TABLES90
find . -type f -name "*.mk" -exec sed -i 's/TBLGEN_TABLES80/TBLGEN_TABLES90/g' {} +

 #rename ATTRIBUTETD80 to ATTRIBUTETD90
find . -type f -name "*.mk" -exec sed -i 's/ATTRIBUTETD80/ATTRIBUTETD90/g' {} +

 #rename INTRINSICTD80 to INTRINSICTD90
find . -type f -name "*.mk" -exec sed -i 's/INTRINSICTD80/INTRINSICTD90/g' {} +

 #rename TBLGEN_TD_DIR80 to TBLGEN_TD_DIR90
find . -type f -name "*.mk" -exec sed -i 's/TBLGEN_TD_DIR80/TBLGEN_TD_DIR90/g' {} +

 #rename CLEAR_TBLGEN_VARS80 to CLEAR_TBLGEN_VARS90
find . -type f -name "*.mk" -exec sed -i 's/CLEAR_TBLGEN_VARS80/CLEAR_TBLGEN_VARS90/g' {} +

4 years agoandroid: update version to 9 in {config,llvm-config}.h headers
Mauro Rossi [Sun, 3 Feb 2019 07:28:46 +0000 (08:28 +0100)]
android: update version to 9 in {config,llvm-config}.h headers

Version information is set to 9.0.0

4 years agoandroid: AMDGPU: add support for Disassembler target (llvm80)
Mauro Rossi [Tue, 4 Feb 2020 03:13:05 +0000 (04:13 +0100)]
android: AMDGPU: add support for Disassembler target (llvm80)

Necessary for the new Valve ACO compiler in mesa 19.3

Cumulative fixes for following building errors:

external/mesa/src/amd/llvm/ac_llvm_util.c:53: error: undefined reference to 'LLVMInitializeAMDGPUDisassembler'

In file included from external/llvm80/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp:22:
In file included from external/llvm80/lib/Target/AMDGPU/Disassembler/../AMDGPURegisterInfo.h:20:
In file included from out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVM80AMDGPUDisassembler_intermediates/AMDGPUGenRegisterInfo.inc:9327:
In file included from external/llvm80/lib/Transforms/Hello/../../../include/llvm/CodeGen/TargetRegisterInfo.h:23:
In file included from external/llvm80/lib/Transforms/Hello/../../../include/llvm/CodeGen/MachineBasicBlock.h:22:
In file included from external/llvm80/lib/Transforms/Hello/../../../include/llvm/CodeGen/MachineInstr.h:24:
In file included from external/llvm80/lib/Transforms/Hello/../../../include/llvm/Analysis/AliasAnalysis.h:44:
In file included from external/llvm80/lib/Transforms/Hello/../../../include/llvm/Analysis/MemoryLocation.h:21:
In file included from external/llvm80/lib/Transforms/Hello/../../../include/llvm/IR/Instructions.h:27:
external/llvm80/lib/Transforms/Hello/../../../include/llvm/IR/Attributes.h:74:14: fatal error: 'llvm/IR/Attributes.inc' file not found
    #include "llvm/IR/Attributes.inc"
             ^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

In file included from external/llvm80/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp:23:
external/llvm80/lib/Target/AMDGPU/Disassembler/../MCTargetDesc/AMDGPUMCTargetDesc.h:64:10: fatal error: 'R600GenRegisterInfo.inc' file not found
         ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

In file included from external/llvm80/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp:26:
external/llvm80/lib/Target/AMDGPU/Disassembler/../Utils/AMDGPUBaseInfo.h:49:10: fatal error: 'AMDGPUGenSearchableTables.inc' file not found
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

external/llvm80/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp:141:10: fatal error: 'AMDGPUGenDisassemblerTables.inc' file not found
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

4 years agoandroid: Coroutines: add support for libLLVMCoroutines (llvm80)
Mauro Rossi [Tue, 4 Feb 2020 02:29:04 +0000 (03:29 +0100)]
android: Coroutines: add support for libLLVMCoroutines (llvm80)

Fixes the following building error with mesa 19.3 branch:

FAILED: out/target/product/x86_64/obj/SHARED_LIBRARIES/gallium_dri_intermediates/LINKED/gallium_dri.so
...
external/mesa/src/gallium/auxiliary/gallivm/lp_bld_init.c:137: error: undefined reference to 'LLVMAddCoroEarlyPass'
external/mesa/src/gallium/auxiliary/gallivm/lp_bld_init.c:138: error: undefined reference to 'LLVMAddCoroSplitPass'
external/mesa/src/gallium/auxiliary/gallivm/lp_bld_init.c:139: error: undefined reference to 'LLVMAddCoroElidePass'
external/mesa/src/gallium/auxiliary/gallivm/lp_bld_init.c:169: error: undefined reference to 'LLVMAddCoroCleanupPass'
clang.real: error: linker command failed with exit code 1 (use -v to see invocation)

4 years agoandroid: [Orc] build ThreadSafeModule.cpp
Mauro Rossi [Tue, 4 Feb 2020 00:56:31 +0000 (01:56 +0100)]
android: [Orc] build ThreadSafeModule.cpp

Fixes the following building error:

external/llvm80/lib/ExecutionEngine/Orc/Layer.cpp:87: error: undefined reference to 'llvm::orc::cloneToNewContext(llvm::orc::ThreadSafeModule&, std::__1::function<bool (llvm::GlobalValue const&)>, std::__1::function<void (llvm::GlobalValue&)>)'

4 years agoandroid: [Mips] build MipsPreLegalizerCombiner.cpp
Mauro Rossi [Tue, 4 Feb 2020 00:56:31 +0000 (01:56 +0100)]
android: [Mips] build MipsPreLegalizerCombiner.cpp

Fixes the following building errors:

external/llvm/lib/Target/Mips/MipsTargetMachine.cpp:59:
error: undefined reference to 'llvm::initializeMipsPreLegalizerCombinerPass(llvm::PassRegistry&)'
...
external/llvm/lib/Target/Mips/MipsTargetMachine.cpp:318:
error: undefined reference to 'llvm::createMipsPreLegalizeCombiner()'

4 years agoDO NOT MERGE: android: translate Android.mk build rules for libLLVM80
Mauro Rossi [Fri, 15 Feb 2019 00:06:04 +0000 (01:06 +0100)]
DO NOT MERGE: android: translate Android.mk build rules for libLLVM80

These changes are applied to build external/llvm80 project
and avoid conflicts with external/llvm project
Changes in mesa main Android.mk are required for libLLVM80
shared library dependency and cflag -DHAVE_LLVM=0x0800

The changelog is described by means of modules and variables
which needed to be renamed:

 #rename LLVM70 to LLVM80
find . -type f -name "*.mk" -exec sed -i 's/LLVM70/LLVM80/g' {} +

 #rename llvm70 to llvm80
find . -type f -name "*.mk" -exec sed -i 's/llvm70/llvm80/g' {} +

 #rename out70 to out80
find . -type f -name "*.mk" -exec sed -i 's/out70/out80/g' {} +

 #rename TBLGEN_TABLES70 to TBLGEN_TABLES80
find . -type f -name "*.mk" -exec sed -i 's/TBLGEN_TABLES70/TBLGEN_TABLES80/g' {} +

 #rename ATTRIBUTETD70 to ATTRIBUTETD80
find . -type f -name "*.mk" -exec sed -i 's/ATTRIBUTETD70/ATTRIBUTETD80/g' {} +

 #rename INTRINSICTD70 to INTRINSICTD80
find . -type f -name "*.mk" -exec sed -i 's/INTRINSICTD70/INTRINSICTD80/g' {} +

 #rename TBLGEN_TD_DIR70 to TBLGEN_TD_DIR80
find . -type f -name "*.mk" -exec sed -i 's/TBLGEN_TD_DIR70/TBLGEN_TD_DIR80/g' {} +

 #rename CLEAR_TBLGEN_VARS70 to CLEAR_TBLGEN_VARS80
find . -type f -name "*.mk" -exec sed -i 's/CLEAR_TBLGEN_VARS70/CLEAR_TBLGEN_VARS80/g' {} +

4 years agoandroid: [Transforms][Vectorize] update cpp sources
Mauro Rossi [Tue, 19 Feb 2019 05:21:39 +0000 (06:21 +0100)]
android: [Transforms][Vectorize] update cpp sources

Porting of following commits:

b838c5c3 [VPlan] Add VPInstruction to VPRecipe transformation.
5d6a2d85 [VPlan, SLP] Add simple SLP analysis on top of VPlan.

4 years agoandroid: [MC][MCParser] update cpp sources
Mauro Rossi [Tue, 19 Feb 2019 05:14:14 +0000 (06:14 +0100)]
android: [MC][MCParser] update cpp sources

Porting of commit:

c9db589 ("[WebAssembly] Added WasmAsmParser.")

4 years agoandroid: [CodeGen][AsmPrinter] update cpp sources
Mauro Rossi [Tue, 19 Feb 2019 05:12:42 +0000 (06:12 +0100)]
android: [CodeGen][AsmPrinter] update cpp sources

Porting of following commits:

adb0f66 [DebugInfo] Generate DWARF debug information for labels. (Fix leak problems)
2fa550c [WebAssembly] LSDA info generation

4 years agoandroid: [CodeGen][GlobalISel] update cpp sources
Mauro Rossi [Thu, 14 Feb 2019 23:11:15 +0000 (00:11 +0100)]
android: [CodeGen][GlobalISel] update cpp sources

Porting of following commits:

a935926 ("[globalisel][combiner] Make the CombinerChangeObserver a MachineFunction::Delegate")
66f2370 ("[GISel]: Add support for CSEing continuously during GISel passes.")

4 years agoandroid: [IR] update cpp sources
Mauro Rossi [Tue, 19 Feb 2019 05:11:12 +0000 (06:11 +0100)]
android: [IR] update cpp sources

Porting of following commits:

9f6be22 ("[NFC][PassTiming] factor out generic PassTimingInfo")
e6959a6 ("[New PM] Introducing PassInstrumentation framework")

4 years agoandroid: [DebugInfo][CodeView] update cpp sources
Mauro Rossi [Thu, 14 Feb 2019 22:55:54 +0000 (23:55 +0100)]
android: [DebugInfo][CodeView] update cpp sources

Porting of following commits:

9b6c494 ("[PDB] Add native reading support for UDT / class types.")
a6cf7e3 ("[PDB] Move some code around. NFC.")

4 years agoandroid: [CodeGen] Add pass to combine interleaved loads.
Mauro Rossi [Thu, 14 Feb 2019 22:34:13 +0000 (23:34 +0100)]
android: [CodeGen] Add pass to combine interleaved loads.

Porting of commit:

5e067bb ("Subject: [PATCH] [CodeGen] Add pass to combine interleaved loads.")

4 years agoandroid: [X86] Support for inserting profile-directed cache prefetches
Mauro Rossi [Thu, 14 Feb 2019 22:29:13 +0000 (23:29 +0100)]
android: [X86] Support for inserting profile-directed cache prefetches

Porting of commit:

241ac1b ("Support for inserting profile-directed cache prefetches")

4 years agoandroid: add exegesis tblgen rules
Mauro Rossi [Wed, 13 Feb 2019 22:34:57 +0000 (23:34 +0100)]
android: add exegesis tblgen rules

4 years agoandroid: [Transform][Utils] update cpp sources
Mauro Rossi [Fri, 15 Feb 2019 00:01:05 +0000 (01:01 +0100)]
android: [Transform][Utils] update cpp sources

Porting of following commits:

bc569e6 ("[NFC] Factor out implicit control flow logic from GVN")
4b12e2f ("[NFC] Split logic of ImplicitControlFlowTracking to allow generalization")
fe980e2 ("[NFC] Factor out guard utility methods into a separate file")
3a86455 ("[NFC] Move OrderedInstructions and InstructionPrecedenceTracking to Analysis")
1f63024 ("[ThinLTO] Handle chains of aliases")

4 years agoandroid: [Debuginfo][PDB] update cpp sources
Mauro Rossi [Thu, 14 Feb 2019 23:59:06 +0000 (00:59 +0100)]
android: [Debuginfo][PDB] update cpp sources

Porting of following commits:

2d30fac ("Enable llvm-pdbutil to list enumerations using native PDB reader")
7428f45 ("[PDB] Create a SymbolCache class.")
6d1036d ("[PDB] Rename some files in the native reader.")
25ccaa7 ("[PDB] Support pointer types in the native reader.")
8d5fd87 ("[PDB] Make the native reader support enumerators.")
9b6c494 ("[PDB] Add native reading support for UDT / class types.")
2adab77 ("[NativePDB] Add support for reading function signatures.")
e1b020a ("[PDB] Add native support for dumping array types.")
a93560b ("[PDB] Add support for parsing VFTable Shape records.")
b478109 ("[PDB] Add support for dumping Typedef records.")

4 years agoandroid: [Transforms][Scalar] update cpp sources
Mauro Rossi [Wed, 13 Feb 2019 20:37:13 +0000 (21:37 +0100)]
android: [Transforms][Scalar] update cpp sources

Porting of following commits:

c05ba54 ("Introduce llvm.experimental.widenable_condition intrinsic")
9a395de ("[Unroll/UnrollAndJam/Vectorizer/Distribute] Add followup loop attributes.")

4 years agoandroid: [PGO] Control Height Reduction
Mauro Rossi [Wed, 13 Feb 2019 20:31:02 +0000 (21:31 +0100)]
android: [PGO] Control Height Reduction

Porting of commit:

c38c850 ("[PGO] Control Height Reduction")

4 years agoandroid: [Transforms][IPO] Hot cold splitting pass
Mauro Rossi [Wed, 13 Feb 2019 20:26:47 +0000 (21:26 +0100)]
android: [Transforms][IPO] Hot cold splitting pass

Porting of commit:

55883c9 ("Hot cold splitting pass")

4 years agoandroid: [Support] update cpp sources
Mauro Rossi [Wed, 13 Feb 2019 20:17:55 +0000 (21:17 +0100)]
android: [Support] update cpp sources

Porting of following commits:

802e2f3 ("Move VersionTuple from clang/Basic to llvm/Support")
5718b6f ("Refactor FileCheck to make it usable as an API")
a5beadf ("Add data structure to form equivalence classes of mangled names.")
9d93ec6 ("Common infrastructure for reading a profile remapping file and building")
7651154 ("Lift VFS from clang to llvm (NFC)")
52809cd ("Move BuryPointer from Clang to LLVM for use in other LLVM tools")
1fff169 ("[ARM, AArch64] Move ARM/AArch64 target parsers into..")

4 years agoandroid: [AArch64] add AArch64GenExegesis.inc tblgen target
Mauro Rossi [Wed, 13 Feb 2019 19:56:03 +0000 (20:56 +0100)]
android: [AArch64] add AArch64GenExegesis.inc tblgen target

Partial porting for AArch64 of commit:
b4abfc2 ("[llvm-exegesis][NFC] Add a way to declare the default counter...")

4 years agoandroid: [AArch64] update cpp sources
Mauro Rossi [Wed, 13 Feb 2019 19:46:08 +0000 (20:46 +0100)]
android: [AArch64] update cpp sources

Porting of following commits:

5a81c73 ("Re-commit: [globalisel] Add a combiner helpers for extending...")
4bc8102 ("[AArch64][v8.5A] Branch Target Identification code-generation pass")
55134c6 ("AArch64: add a pass to compress jump-table entries when possible.")
21db422 ("Introduce control flow speculation tracking pass for AArch64")

4 years agoandroid: [Analysis] update cpp sources
Mauro Rossi [Tue, 19 Feb 2019 05:30:51 +0000 (06:30 +0100)]
android: [Analysis] update cpp sources

Porting of following commits:

187d918 (Re-enable "[NFC] Unify guards detection")
3a86455 ("[NFC] Move OrderedInstructions and InstructionPrecedenceTracking to Analysis")
b33a403 ("[NFC] Rename the DivergenceAnalysis to LegacyDivergenceAnalysis")
479b4ab ("Break LoopUtils into an Analysis file.")
981ceb8 ("[DA] DivergenceAnalysis for unstructured, reducible CFGs")
c29e36f ("[stack-safety] Empty local passes for Stack Safety Local Analysis")

4 years agoandroid: [BinaryFormat] update cpp sources
Mauro Rossi [Sun, 10 Feb 2019 17:41:19 +0000 (18:41 +0100)]
android: [BinaryFormat] update cpp sources

Porting of the following commits:

8b3c688 ("[BinaryFormat] Add MessagePack reader/writer")
706911a ("[BinaryFormat] Add MsgPackTypes)
8ae3c1c ("[AMDGPU] Emit MessagePack HSA Metadata for v3 code object")

4 years agoandroid: [AMDGPU] update cpp sources
Mauro Rossi [Sun, 10 Feb 2019 17:33:56 +0000 (18:33 +0100)]
android: [AMDGPU] update cpp sources

Porting of the following commits:

b461f4d ("[AMDGPU] Add an AMDGPU specific atomic optimizer.")
92794ee ("[AMDGPU] Add a pass to promote bitcast calls")
322a807 ("[AMDGPU] Add FixupVectorISel pass, currently Supports SREGs in GLOBAL LD/ST")
d339265 ("[AMDGPU] Combine DPP mov with use instructions (VOP1/2/3)")
c9d081f ("[AMDGPU] Add new Mode Register pass")
1da08e2 ("[AMDGPU] Add support for TFE/LWE in image intrinsics. 2nd try")

4 years agoandroid: [X86] condition branches folding for three-way conditional codes
Mauro Rossi [Sun, 10 Feb 2019 16:45:17 +0000 (17:45 +0100)]
android: [X86] condition branches folding for three-way conditional codes

Porting of commit fa7848b1a02f2b36fc12786bbffd1c8a68866ca2
("[X86] condition branches folding for three-way conditional codes")

4 years agoandroid: additional build fixes
Mauro Rossi [Wed, 6 Feb 2019 22:48:16 +0000 (23:48 +0100)]
android: additional build fixes

4 years agoandroid: config.h: Add option to disable minidumps, default it to off
Mauro Rossi [Sun, 3 Feb 2019 08:16:44 +0000 (09:16 +0100)]
android: config.h: Add option to disable minidumps, default it to off

Porting of commit
7e4b0fae ("Add cmake option to disable minidumps, default it to off")

plus some other options that are to be set on (1) or off (0)

Fixes the following building error:

external/llvm80/lib/Support/Process.cpp:88:35:
error: use of undeclared identifier 'LLVM_ENABLE_CRASH_DUMPS'
static bool coreFilesPrevented = !LLVM_ENABLE_CRASH_DUMPS;
                                  ^
1 error generated.

4 years agoandroid: update version in {config,llvm-config}.h headers
Mauro Rossi [Sun, 3 Feb 2019 07:28:46 +0000 (08:28 +0100)]
android: update version in {config,llvm-config}.h headers

Version information is set to 8.0.0

4 years agoandroid: fix changed sources in makefiles
Mauro Rossi [Wed, 6 Feb 2019 20:55:53 +0000 (21:55 +0100)]
android: fix changed sources in makefiles

4 years agoandroid: [DWARF] Support for .debug_addr (consumer)
Mauro Rossi [Fri, 3 Aug 2018 11:16:19 +0000 (13:16 +0200)]
android: [DWARF] Support for .debug_addr (consumer)

Reference: 9a8677d ("[DWARF] Support for .debug_addr (consumer)")

4 years agoandroid: [AArch64][SVE] Asm: Add MOVPRFX instructions.
Mauro Rossi [Fri, 3 Aug 2018 07:09:24 +0000 (09:09 +0200)]
android: [AArch64][SVE] Asm: Add MOVPRFX instructions.

Fix of Attributes and Intrinsicts depedencies related to commit
c80d03aba54 ("[AArch64][SVE] Asm: Add MOVPRFX instructions.")

Corrects the following building errors:

host C++: libLLVM70AArch64AsmParser_32 <= external/llvm70/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
...
In file included from external/llvm70/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp:14:
In file included from external/llvm70/lib/Target/AArch64/AsmParser/../AArch64InstrInfo.h:18:
In file included from external/llvm70/lib/Target/AArch64/AsmParser/../AArch64RegisterInfo.h:18:
In file included from out/host/linux-x86/obj32/STATIC_LIBRARIES/libLLVM70AArch64AsmParser_intermediates/AArch64GenRegisterInfo.inc:4971:
In file included from external/llvm70/lib/Transforms/Hello/../../../include/llvm/CodeGen/TargetRegisterInfo.h:23:
In file included from external/llvm70/lib/Transforms/Hello/../../../include/llvm/CodeGen/MachineBasicBlock.h:22:
In file included from external/llvm70/lib/Transforms/Hello/../../../include/llvm/CodeGen/MachineInstr.h:23:
In file included from external/llvm70/lib/Transforms/Hello/../../../include/llvm/Analysis/AliasAnalysis.h:44:
In file included from external/llvm70/lib/Transforms/Hello/../../../include/llvm/Analysis/MemoryLocation.h:21:
In file included from external/llvm70/lib/Transforms/Hello/../../../include/llvm/IR/CallSite.h:32:
external/llvm70/lib/Transforms/Hello/../../../include/llvm/IR/Attributes.h:74:14: fatal error: 'llvm/IR/Attributes.inc' file not found
    #include "llvm/IR/Attributes.inc"
             ^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

host C++: libLLVM70AArch64AsmParser_32 <= ex...ernal/llvm70/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
...
In file included from external/llvm70/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp:14:
In file included from external/llvm70/lib/Target/AArch64/AsmParser/../AArch64InstrInfo.h:18:
In file included from external/llvm70/lib/Target/AArch64/AsmParser/../AArch64RegisterInfo.h:18:
In file included from out/host/linux-x86/obj32/STATIC_LIBRARIES/libLLVM70AArch64AsmParser_intermediates/AArch64GenRegisterInfo.inc:4971:
In file included from external/llvm70/lib/Transforms/Hello/../../../include/llvm/CodeGen/TargetRegisterInfo.h:23:
In file included from external/llvm70/lib/Transforms/Hello/../../../include/llvm/CodeGen/MachineBasicBlock.h:22:
In file included from external/llvm70/lib/Transforms/Hello/../../../include/llvm/CodeGen/MachineInstr.h:23:
In file included from external/llvm70/lib/Transforms/Hello/../../../include/llvm/Analysis/AliasAnalysis.h:44:
In file included from external/llvm70/lib/Transforms/Hello/../../../include/llvm/Analysis/MemoryLocation.h:21:
In file included from external/llvm70/lib/Transforms/Hello/../../../include/llvm/IR/CallSite.h:32:
external/llvm70/lib/Transforms/Hello/../../../include/llvm/IR/Attributes.h:74:14: fatal error: 'llvm/IR/Attributes.inc' file not found
    #include "llvm/IR/Attributes.inc"
             ^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

4 years agoandroid: [DWARF v5] Refactor range lists dumping...
Mauro Rossi [Thu, 26 Jul 2018 01:03:17 +0000 (03:03 +0200)]
android: [DWARF v5] Refactor range lists dumping...

Reference:
3e597f4 ("[DWARF v5] Refactor range lists dumping...")

4 years agoandroid: [ARM] ARMCodeGenPrepare backend pass
Mauro Rossi [Mon, 23 Jul 2018 21:58:17 +0000 (23:58 +0200)]
android: [ARM] ARMCodeGenPrepare backend pass

Reference: 942fbb2 ("[ARM] ARMCodeGenPrepare backend pass")

4 years agoandroid: [SLH] Introduce a new pass to do Speculative Load Hardening to mitigate
Mauro Rossi [Sat, 14 Jul 2018 09:48:03 +0000 (11:48 +0200)]
android: [SLH] Introduce a new pass to do Speculative Load Hardening to mitigate

Reference:
bd8c8d7 ("[SLH] Introduce a new pass to do Speculative Load Hardening to mitigate")

4 years agoandroid: Lift JSON library from clang-tools-extra/clangd to llvm/Support.
Mauro Rossi [Sat, 14 Jul 2018 09:27:03 +0000 (11:27 +0200)]
android: Lift JSON library from clang-tools-extra/clangd to llvm/Support.

Reference:
5070d36 ("Lift JSON library from clang-tools-extra/clangd to llvm/Support.")

4 years agoandroid: [TableGen] Add a general-purpose JSON backend.
Mauro Rossi [Sat, 14 Jul 2018 09:12:53 +0000 (11:12 +0200)]
android: [TableGen] Add a general-purpose JSON backend.

Reference: 9cfd4e5 ("[TableGen] Add a general-purpose JSON backend.")

4 years agoandroid: [Dominators] Add the DomTreeUpdater class
Mauro Rossi [Wed, 11 Jul 2018 07:06:46 +0000 (09:06 +0200)]
android: [Dominators] Add the DomTreeUpdater class

Reference:
bf4ec2b ("[Dominators] Add the DomTreeUpdater class")
57fa5c9 (Reappl "[Dominators] Add the DomTreeUpdater class")

4 years agoandroid: [AMDGPU] Fix layering issue with AMDGPUHSAMetadataStreamer (NFC)
Mauro Rossi [Wed, 11 Jul 2018 06:27:53 +0000 (08:27 +0200)]
android: [AMDGPU] Fix layering issue with AMDGPUHSAMetadataStreamer (NFC)

Fixes: 47362da ("[AMDGPU] Fix layering issue with AMDGPUHSAMetadataStreamer (NFC)")

4 years agoDO NOT MERGE: all-in-one build fixes
Mauro Rossi [Fri, 6 Jul 2018 00:03:23 +0000 (02:03 +0200)]
DO NOT MERGE: all-in-one build fixes

4 years agoDO NOT MERGE: tweaks to build oreo-x86
Mauro Rossi [Wed, 3 Jan 2018 22:54:02 +0000 (23:54 +0100)]
DO NOT MERGE: tweaks to build oreo-x86

Needed to avoid following Android build system errors:

external/llvm70/shared_llvm.mk: error: libLLVM70 (SHARED_LIBRARIES windows-x86) missing libLLVM70GlobalISel (STATIC_LIBRARIES windows-x86)
Available variants:
  libLLVM70GlobalISel (STATIC_LIBRARIES linux-x86_64)
  libLLVM70GlobalISel (STATIC_LIBRARIES linux-x86)
...
external/llvm70/shared_llvm.mk: error: libLLVM70 (SHARED_LIBRARIES windows-x86_64) missing libLLVM70GlobalISel (STATIC_LIBRARIES windows-x86_64)
Available variants:
  libLLVM50GlobalISel (STATIC_LIBRARIES linux-x86_64)
  libLLVM50GlobalISel (STATIC_LIBRARIES linux-x86)

4 years agoandroid: fix Mips target build
Mauro Rossi [Sun, 10 Jun 2018 20:38:51 +0000 (22:38 +0200)]
android: fix Mips target build

Source files and tblgen targets are updated for Mips target

4 years agoandroid: Target/Mips: fix Intrinsics dependencies
Mauro Rossi [Sun, 10 Jun 2018 20:38:51 +0000 (22:38 +0200)]
android: Target/Mips: fix Intrinsics dependencies

Needed to avoid following building errors:

In file included from external/llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp:16:
In file included from external/llvm/lib/Target/Mips/InstPrinter/../MipsInstrInfo.h:23:
In file included from external/llvm/lib/Target/Mips/InstPrinter/../MipsRegisterInfo.h:18:
In file included from external/llvm/lib/Transforms/Hello/../../../include/llvm/CodeGen/MachineBasicBlock.h:22:
In file included from external/llvm/lib/Transforms/Hello/../../../include/llvm/CodeGen/MachineInstr.h:24:
In file included from external/llvm/lib/Transforms/Hello/../../../include/llvm/CodeGen/MachineOperand.h:18:
external/llvm/lib/Transforms/Hello/../../../include/llvm/IR/Intrinsics.h:42:10: fatal error: 'llvm/IR/Intrinsics.inc' file not found
#include "llvm/IR/Intrinsics.inc"
         ^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

In file included from external/llvm/lib/Target/Mips/TargetInfo/MipsTargetInfo.cpp:11:
In file included from external/llvm/lib/Transforms/Hello/../../../include/llvm/IR/Module.h:26:
In file included from external/llvm/lib/Transforms/Hello/../../../include/llvm/IR/Function.h:33:
external/llvm/lib/Transforms/Hello/../../../include/llvm/IR/Intrinsics.h:42:10: fatal error: 'llvm/IR/Intrinsics.gen' file not found
         ^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

4 years agoandroid: Rename {Attributes,Intrinsics}.gen to {Attributes,Intrinsics}.inc
Mauro Rossi [Sat, 9 Jun 2018 15:27:33 +0000 (17:27 +0200)]
android: Rename {Attributes,Intrinsics}.gen to {Attributes,Intrinsics}.inc

Fix the following building errors:

In file included from external/llvm/lib/Linker/LinkModules.cpp:21:
In file included from external/llvm/include/llvm/IR/Module.h:23:
external/llvm/include/llvm/IR/Attributes.h:74:14: fatal error: 'llvm/IR/Attributes.inc' file not found
    #include "llvm/IR/Attributes.inc"
             ^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
...
In file included from external/llvm/lib/Linker/IRMover.cpp:19:
external/llvm/include/llvm/IR/Intrinsics.h:42:10: fatal error: 'llvm/IR/Intrinsics.inc' file not found
         ^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Reference:
ea0775ec4a ("Rename Attributes.gen, Intrinsics.gen to Attributes.inc, Intrinsics.inc")

4 years agoandroid: utils/Tablegen: update sources list
Mauro Rossi [Sat, 9 Jun 2018 15:01:46 +0000 (17:01 +0200)]
android: utils/Tablegen: update sources list

Fixes  building errors:

external/llvm/utils/TableGen/DisassemblerEmitter.cpp:133: error: undefined reference to 'llvm::emitWebAssemblyDisassemblerTables(llvm::raw_ostream&, llvm::ArrayRef<llvm::CodeGenInstruction const*> const&)'

external/llvm/utils/TableGen/InstrInfoEmitter.cpp:417: error: undefined reference to 'llvm::PredicateExpander::expandPredicate(llvm::formatted_raw_ostream&, llvm::Record const*)'
external/llvm/utils/TableGen/InstrInfoEmitter.cpp:393: error: undefined reference to 'llvm::PredicateExpander::expandPredicate(llvm::formatted_raw_ostream&, llvm::Record const*)'
external/llvm/utils/TableGen/SubtargetEmitter.cpp:1486: error: undefined reference to 'llvm::PredicateExpander::expandPredicate(llvm::formatted_raw_ostream&, llvm::Record const*)'

external/llvm/utils/TableGen/TableGen.cpp:151: error: undefined reference to 'llvm::EmitCompressInst(llvm::RecordKeeper&, llvm::raw_ostream&)'
clang.real: error: linker command failed with exit code 1 (use -v to see invocation)
[  8% 764/8646] host C++: libLLVMRuntimeDyld <= external/llvm/lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp
ninja: build stopped: subcommand failed.
14:46:19 ninja failed with: exit status 1

Reference commits:
839cd7ff05 ("[RISCV] Tablegen-driven Instruction Compression.")
04cf0d7c9c ("[WebAssembly] Initial Disassembler.")
e68d92b387 ("[RFC][Patch 1/3] Add a new class of predicates for variant scheduling classes.")

4 years agoandroid: Transforms/Vectorize: update sources list
Mauro Rossi [Sat, 9 Jun 2018 19:04:26 +0000 (21:04 +0200)]
android: Transforms/Vectorize: update sources list

4 years agoandroid: Transforms/Utils: update sources list
Mauro Rossi [Sat, 9 Jun 2018 19:04:26 +0000 (21:04 +0200)]
android: Transforms/Utils: update sources list

4 years agoandroid: Transforms/IPO: update sources list
Mauro Rossi [Sat, 9 Jun 2018 19:04:26 +0000 (21:04 +0200)]
android: Transforms/IPO: update sources list

4 years agoandroid: Trasform/AggressiveInstCombine: build as static library
Mauro Rossi [Sat, 9 Jun 2018 19:34:47 +0000 (21:34 +0200)]
android: Trasform/AggressiveInstCombine: build as static library

Android makefile is added to build libLLVMAggressiveInstCombine static library
and static dependency is added in shared_llvm.mk

4 years agoandroid: ExecutionEngine/Orc: update sources list
Mauro Rossi [Sat, 9 Jun 2018 19:04:26 +0000 (21:04 +0200)]
android: ExecutionEngine/Orc: update sources list

4 years agoandroid: Demangle: add libLLVMDemangle static dependency
Mauro Rossi [Sat, 9 Jun 2018 20:07:36 +0000 (22:07 +0200)]
android: Demangle: add libLLVMDemangle static dependency

4 years agoandroid: DebugInfo/DWARF: update sources list
Mauro Rossi [Sat, 9 Jun 2018 19:04:26 +0000 (21:04 +0200)]
android: DebugInfo/DWARF: update sources list

4 years agoandroid: BinaryFormat: update sources list
Mauro Rossi [Sat, 9 Jun 2018 19:04:26 +0000 (21:04 +0200)]
android: BinaryFormat: update sources list

4 years agoandroid: Analysis: update sources list
Mauro Rossi [Sat, 9 Jun 2018 19:04:26 +0000 (21:04 +0200)]
android: Analysis: update sources list

4 years agoandroid: Support: update sources list
Mauro Rossi [Sun, 10 Jun 2018 18:35:33 +0000 (20:35 +0200)]
android: Support: update sources list

Source files updated for Support target

4 years agoandroid: [Support] Move syntax highlighting into support
Mauro Rossi [Sat, 9 Jun 2018 10:58:01 +0000 (12:58 +0200)]
android: [Support] Move syntax highlighting into support

Apply changes also in Android targets

Fixes the following building error:

ninja: error: 'external/llvm/lib/DebugInfo/DWARF/SyntaxHighlighting.cpp',
needed by 'out/target/product/x86/obj/STATIC_LIBRARIES/libLLVMDebugInfoDWARF_intermediates/SyntaxHighlighting.o',
missing and no known rule to make it
12:05:41 ninja failed with: exit status 1

Reference: 01d72e5767 ("[Support] Move syntax highlighting into support")

4 years agoandroid: CodeGen: update sources list
Mauro Rossi [Sat, 9 Jun 2018 19:04:26 +0000 (21:04 +0200)]
android: CodeGen: update sources list

4 years agoandroid: [IR][CodeGen] Move EVT to CodeGen layer.
Mauro Rossi [Sat, 9 Jun 2018 12:43:57 +0000 (14:43 +0200)]
android: [IR][CodeGen] Move EVT to CodeGen layer.

Apply the change in Android target

Fixes following building error:

ninja: error: 'external/llvm/lib/IR/ValueTypes.cpp',
needed by 'out/target/product/x86/obj/STATIC_LIBRARIES/libLLVMCore_intermediates/ValueTypes.o',
missing and no known rule to make it
14:32:04 ninja failed with: exit status 1

Reference: f137ed238d ("[IR][CodeGen] Remove dependency on EVT from IR/Function.cpp.
 Move EVT to CodeGen layer.")

4 years agoandroid: Codegen: Rename ExecutionDepsFix files to ExecutionDomainFix
Mauro Rossi [Sat, 9 Jun 2018 12:32:34 +0000 (14:32 +0200)]
android: Codegen: Rename ExecutionDepsFix files to ExecutionDomainFix

Rename the source file in Android target

Fixes following building error:

ninja: error: 'external/llvm/lib/CodeGen/ExecutionDepsFix.cpp',
needed by 'out/target/product/x86/obj/STATIC_LIBRARIES/libLLVMCodeGen_intermediates/ExecutionDepsFix.o',
missing and no known rule to make it
13:15:38 ninja failed with: exit status 1

Reference: d6bf9cdf27 ("Rename ExecutionDepsFix files to ExecutionDomainFix")

4 years agoandroid: Codegen/AsmPrinter: Rename DwarfAccelTable to AccelTable
Mauro Rossi [Sat, 9 Jun 2018 11:13:30 +0000 (13:13 +0200)]
android: Codegen/AsmPrinter: Rename DwarfAccelTable to AccelTable

Apply changes also in Android targets

Fixes the following building error:

ninja: error: 'external/llvm/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp',
needed by 'out/target/product/x86/obj/STATIC_LIBRARIES/libLLVMAsmPrinter_intermediates/DwarfAccelTable.o',
missing and no known rule to make it
12:13:33 ninja failed with: exit status 1

Reference: 633599ba03 ("[NFC] Rename DwarfAccelTable and move header.")

4 years agoandroid: fix AMDGPU target build
Mauro Rossi [Sun, 10 Jun 2018 18:17:20 +0000 (20:17 +0200)]
android: fix AMDGPU target build

Source files and tblgen targets are updated for AMDGPU target

4 years agoandroid: [AMDGPU][Waitcnt] Remove the old waitcnt pass
Mauro Rossi [Sat, 9 Jun 2018 10:00:37 +0000 (12:00 +0200)]
android: [AMDGPU][Waitcnt] Remove the old waitcnt pass

Remove source also in Android AMDGPU target

Fixes the following building error:

ninja: error: 'external/llvm/lib/Target/AMDGPU/SIInsertWaits.cpp',
needed by 'out/target/product/x86/obj/STATIC_LIBRARIES/libLLVMAMDGPUCodeGen_intermediates/SIInsertWaits.o',
missing and no known rule to make it
11:44:43 ninja failed with: exit status 1

Reference: ac95aa536 ("[AMDGPU][Waitcnt] Remove the old waitcnt pass")

4 years agoandroid: AMDGPU: Rename OpenCL lowering pass to be R600 specific.
Mauro Rossi [Sat, 9 Jun 2018 09:46:59 +0000 (11:46 +0200)]
android: AMDGPU: Rename OpenCL lowering pass to be R600 specific.

Rename the source file in Android AMDGPU target

Fixes following building error:

ninja: error: 'external/llvm/lib/Target/AMDGPU/AMDGPUOpenCLImageTypeLoweringPass.cpp',
needed by 'out/target/product/x86/obj/STATIC_LIBRARIES/libLLVMAMDGPUCodeGen_intermediates/AMDGPUOpenCLImageTypeLoweringPass.o',
missing and no known rule to make it
11:26:11 ninja failed with: exit status 1

Reference: 0d44e5b362 ("AMDGPU: Rename OpenCL lowering pass to be R600 specific.")

4 years agoandroid: add tblgen rules for searchable-tables targets
Mauro Rossi [Sat, 9 Jun 2018 16:42:18 +0000 (18:42 +0200)]
android: add tblgen rules for searchable-tables targets

Required for AMDGPUGenSearchableTables.inc target

4 years agoandroid: Target/X86: update sources list
Mauro Rossi [Sat, 9 Jun 2018 19:04:26 +0000 (21:04 +0200)]
android: Target/X86: update sources list

4 years agoandroid: fix Target/ARM build
Mauro Rossi [Fri, 19 Jan 2018 13:10:18 +0000 (14:10 +0100)]
android: fix Target/ARM build

Changelog:

updated list of *.cpp sources in ARM Android.mk makefiles
added lib/Target/ARM/Utils/Android.mk to build libLLVMARMUtils module
shared_llvm.mk: added libLLVMARMUtils to arm static libraries
main Android.mk: lib/Target/ARM/Utils path added
llvm-tblgen-rules.mk: new rule for ARMGenSystemRegister.inc aligned to AMR Cmakelist.txt
ARM modules Android.mk: added ARMGenSystemRegister.inc generated file where necessary
ARM modules Android.mk: added *GEN_ATTRIBUTES_MK, *GEN_INTRINSICS_MK rules where necessary

4 years agoandroid: Target/X86/InstPrinter: fix {Attributes,Intrinsics}.gen dependencies
Mauro Rossi [Sat, 20 Jan 2018 19:57:19 +0000 (20:57 +0100)]
android: Target/X86/InstPrinter: fix {Attributes,Intrinsics}.gen dependencies

Makefile rules are aligned to X86/AsmParser ones

Fixes the following building errors:

host C++: libLLVM70X86AsmPrinter_32 <= external/llvm70/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
...
In file included from external/llvm70/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp:17:
In file included from external/llvm70/lib/Target/X86/InstPrinter/X86InstComments.h:18:
In file included from external/llvm70/lib/Transforms/Hello/../../../include/llvm/CodeGen/MachineInstr.h:23:
In file included from external/llvm70/lib/Transforms/Hello/../../../include/llvm/Analysis/AliasAnalysis.h:44:
In file included from external/llvm70/lib/Transforms/Hello/../../../include/llvm/Analysis/MemoryLocation.h:21:
In file included from external/llvm70/lib/Transforms/Hello/../../../include/llvm/IR/CallSite.h:32:
external/llvm70/lib/Transforms/Hello/../../../include/llvm/IR/Attributes.h:74:14: fatal error: 'llvm/IR/Attributes.gen' file not found
    #include "llvm/IR/Attributes.gen"
             ^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

target  C++: libLLVM70X86AsmPrinter_32 <= external/llvm70/lib/Target/X86/InstPrinter/X86InstComments.cpp
...
In file included from external/llvm70/lib/Target/X86/InstPrinter/X86InstComments.cpp:15:
In file included from external/llvm70/lib/Target/X86/InstPrinter/X86InstComments.h:18:
In file included from external/llvm70/lib/Transforms/Hello/../../../include/llvm/CodeGen/MachineInstr.h:23:
In file included from external/llvm70/lib/Transforms/Hello/../../../include/llvm/Analysis/AliasAnalysis.h:44:
In file included from external/llvm70/lib/Transforms/Hello/../../../include/llvm/Analysis/MemoryLocation.h:21:
In file included from external/llvm70/lib/Transforms/Hello/../../../include/llvm/IR/CallSite.h:32:
external/llvm70/lib/Transforms/Hello/../../../include/llvm/IR/Attributes.h:74:14: fatal error: 'llvm/IR/Attributes.gen' file not found
    #include "llvm/IR/Attributes.gen"
             ^
1 error generated.

4 years agoandroid: add support for "retpoline" x86 mitigation
Mauro Rossi [Sat, 3 Feb 2018 18:43:17 +0000 (19:43 +0100)]
android: add support for "retpoline" x86 mitigation

Builds the new sources added by commit e307072 ("Merging r323155:")

4 years agoandroid: update sources file names for llvm70
Mauro Rossi [Fri, 19 Jan 2018 17:44:18 +0000 (18:44 +0100)]
android: update sources file names for llvm70

*SRC_FILES lists are aligned as per Cmakelist.txt files,
to avoid building errors due to changes in codebase

e.g. AMDGPUCodeObjectMetadata.cpp => AMDGPUMetadata.cpp

ninja: error: 'external/llvm70/lib/Support/AMDGPUCodeObjectMetadata.cpp',
needed by 'out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVM70Support_intermediates/AMDGPUCodeObjectMetadata.o',
missing and no known rule to make it

or new missing sources:

external/llvm70/utils/TableGen/CodeGenDAGPatterns.cpp:88: error: undefined reference to 'llvm::ValueTypeByHwMode:

4 years agofor new mesa build (LLVM70)
Qiang Yu [Thu, 17 Aug 2017 01:45:47 +0000 (09:45 +0800)]
for new mesa build (LLVM70)

Change-Id: I6008945796c2fdd0bcfe4a21b171d962be593646

4 years agofor sync with upstream update
Qiang Yu [Fri, 11 Aug 2017 02:58:55 +0000 (10:58 +0800)]
for sync with upstream update

Change-Id: Ifa8ab4651323b78ba69ac46c421f3d6ad2cf7a50

4 years agoCLEAR_TBLGEN_VARS to CLEAR_TBLGEN_VARS70
Qiang Yu [Tue, 1 Aug 2017 07:39:40 +0000 (15:39 +0800)]
CLEAR_TBLGEN_VARS to CLEAR_TBLGEN_VARS70

find . -type f -name "*.mk" -exec sed -i 's/CLEAR_TBLGEN_VARS/CLEAR_TBLGEN_VARS70/g' {} +

Change-Id: I49cea6080f2c69f241d1a28f55f342aa95f62c7b

4 years agoTBLGEN_TD_DIR to TBLGEN_TD_DIR70
Qiang Yu [Tue, 1 Aug 2017 07:38:22 +0000 (15:38 +0800)]
TBLGEN_TD_DIR to TBLGEN_TD_DIR70

find . -type f -name "*.mk" -exec sed -i 's/TBLGEN_TD_DIR/TBLGEN_TD_DIR70/g' {} +

Change-Id: I6ea2fb993626240761432fb3db38caead251e78a

4 years agoINTRINSICTD to INTRINSICTD70
Qiang Yu [Tue, 1 Aug 2017 07:37:29 +0000 (15:37 +0800)]
INTRINSICTD to INTRINSICTD70

find . -type f -name "*.mk" -exec sed -i 's/INTRINSICTD/INTRINSICTD70/g' {} +

Change-Id: I042b6a3526260d3d811b4cbba1751e73ffdd0fd6