summaryrefslogtreecommitdiffstats
path: root/recipes-devtools
Commit message (Collapse)AuthorAgeFilesLines
* recipes: Specify branch and protocol in SRC_URIhardknottDevendra Tewari2021-11-221-1/+1
| | | | | | | | github has stopped supporting anonymous git protocol and bitbake now warns about branch not being explicit, master is no more a viable fallback Signed-off-by: Devendra Tewari <devendra.tewari@gmail.com>
* clang: Add SDK_VENDOR string to CLANG_EXTRA_OE_VENDORSKhem Raj2021-04-281-1/+1
| | | | | | | | | | | | This helps in ensuring that SDK elements are built correctly as well, at present we get right builds for cross/target/native clang but not for nativesdk since it use SDK_VENDOR string for vendor eg. -yoesdk which currently is not added to known OE vendors, as a result nativesdk-clang does not build since crosssdk clang can not find runtime files e.g. libgcc Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Martin Jansa <Martin.Jansa@gmail.com>
* llvm-project-source: Add multilib vendor supportYi Fan Yu2021-04-151-4/+16
| | | | | | | | | | | | | | | | | Generate all possible vendor name that a multilib build could use by using the variable MULTILIB_VARIANTS. ex: {TARGET_VENDOR} {TARGET_VENDOR}mllib32 Fixes build issue when compiling lib32-compiler-rt where clang has issue detecting gcc toolchain. when clang --print-search-dirs: lib32-recipe-sysroot//usr/lib/i686-wrsmllib32-linux should be lib32-recipe-sysroot//usr/lib/i686-wrsmllib32-linux/10.2.0/ Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
* clang: Upgrade to 12.0.0 RC5Khem Raj2021-04-081-1/+1
| | | | | | | * d28af7c654d8 remove -fpch-codegen and -fpch-debuginfo from Clang 12.0 release notes * 04ba60cfe598 [ORC][C-bindings] Fix some ORC C bindings function names and signatures. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Do not use lld for building nativsdk clangKhem Raj2021-04-081-1/+0
| | | | | | | | | While we can, it does not have the sspace for path dance that yocto does for relocable SDK which means clang components may end up being non-relocatable when SDK is installed in longer paths. So for now pay the price of switching back to binutils linker Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update 12.0.0-RC4Khem Raj2021-04-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | * 31001be371e8 [LoopVectorize] Refine hasIrregularType predicate * 9ae9ab1ca343 [RISCV][MC] Fix nf encoding for vector ld/st whole register * ff2cf8fafa5a [InstCombine] avoid creating an extra instruction in zext fold and possible inf-loop * 5b3480610383 [InstCombine] add test for zext-of-icmps; NFC * 38dd45b00431 [X86][FastISel] Fix with.overflow eflags clobber (PR49587) * 79a79d1d01c4 [X86] Add test for PR49587 (NFC) * f05b64961056 [FastISel] Don't trivially kill extractvalues (PR49467) * e89cdf8937bb [OpenMP] Restore backwards compatibility for libomptarget * 8ca56905dd9b [PowerPC] Fix infinite loop in peephole CR optimization (PR49509) * f43958b7c497 [OpenMP] Fixed a crash in hidden helper thread * e94372d1b395 [SimplifyCFG] avoid sinking insts within an infinite-loop * f4c01f33f450 [Support] Fix 'keeping' temporary files on Windows 7 * 4990141a4366 [WoA][MSVC] Use default linker setting in MSVC-compatible driver [take 2] * e3186ba0f3b5 [aarch64][WOA64][docs] Release note for WoA-hosted LLVM 12 binary * 00441b8f4e5b [OpenCL][Docs] Release notes * ca14f0282fce [release][docs] List all cores Arm has added support for in LLVM 12. * c016eda3257e [release][docs] List all cores Arm has added support for in LLVM 12. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm-project-source: Re-implement add_more_target_vendors in pythonKhem Raj2021-03-302-16/+21
| | | | | | | | This is to avoid a ton of shell variables becoming dependencies Add every case in a new line Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: Fix build on armv6Khem Raj2021-03-252-0/+75
| | | | | | Fixes Issue #445 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: allow to set CLANG_EXTRA_OE_VENDORS to support custom TARGET_VENDOR valueMartin Jansa2021-03-243-6/+31
| | | | | | | | * instead of hardcoding only yoe, poky, wrs in the patch, add just placeholder string which gets replaced with a list based on CLANG_EXTRA_OE_VENDORS variable in llvm-project-source.inc:add_more_target_vendors Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* clang/llvm: Upgrade to 12.0.0 RC3Khem Raj2021-03-121-1/+1
| | | | | | | | | | | | | | | | | | | | | * 15d1ee36720f [CMake][compiler-rt] Use copying instead of symlinking for LSE builtins on non-Unix-likes * bff59aca162e [TargetLowering] Use HandleSDNodes to prevent nodes from being deleted by recursive calls in getNegatedExpression. * a123beacce40 [LoopVectorize] Fix VPRecipeBuilder::createEdgeMask to correctly generate the mask * f8b32989241c [clang-tidy] Deprecate readability-deleted-default check * 46a1b0655666 [AArch64] Legalize horizontal fmax/fmin reductions on f16 vectors * d24e102ba266 [OpenMP] Fixed a crash when offloading to x86_64 with target nowait * 52510d84802b [GlobalISel] Bail on G_PHI narrowing of odd types (PR48188) * 99350dcc3f5b [OpenMP] Fix clang-cl build error regarding TSX intrinsics * 4ed9f17e9390 [analyzer] Add 12.0.0 release notes * 9760b282ff03 [DAGCombiner][X86] Don't peek through ANDs on the shift amount in matchRotateSub when called from MatchFunnelPosNeg. * 344216979213 Revert "[c++20] Mark class type NTTPs as done and start defining the feature test macro." * f73ba0f3582b [SimplifyCFG] avoid illegal phi with both poison and undef * 692808e5af83 [InstCombine] avoid infinite loop in demanded bits for select * c637d4d136fd [OpenMP][NVPTX] Fixed a compilation error in deviceRTLs caused by unsupported feature in release verion of LLVM * 98f06b16a313 [AArch64][Docs] Release notes 12.x on outline atomics * e0e6b1e39e7e ReleaseNotes: add lld/ELF notes Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Add 'wrs' to OE-distroYi Fan Yu2021-03-111-3/+7
| | | | | | | | | | | Add 'wrs' to OE-distro so it will now also find the correct header files for WR Linux. Solve `<climits> <algorithm> ... not found` when building with clang for WR Linux. Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com> Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
* clang: Install lld for target buildsZoltán Böszörményi2021-03-101-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LLDTargets.cmake (generated and installed by the lld build) references lld this way: add_executable(lld IMPORTED) set_property(TARGET lld PROPERTY ENABLE_EXPORTS 1) This way lld can be used by plugins to get their symbols from, pretty much like PHP modules that resolve their symbols from the php executable during runtime linking. At least https://github.com/RadeonOpenCompute/ROCm-CompilerSupport uses lld's cmake files as opposed to using only llvm and previously failed with: | The imported target "lld" references the file | | ".../tmp-sicom-glibc/work/corei7-64-sicom-linux/amd-comgr/4.0.0-r0/recipe-sysroot/usr/bin/lld" | | but this file does not exist. Possible reasons include: | | * The file was deleted, renamed, or moved to another location. | | * An install or uninstall procedure did not complete successfully. | | * The installation package was faulty and contained Extending SYSROOT_DIRS with ${bindir} would break crosscompiling since CMake found clang/clang++ from recipe-sysroot in this case. Install lld into sysroot-destdir but nothing else. Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
* spirv-llvm-translator: disable ccacheNaveen Saini2021-03-052-0/+34
| | | | | | | | Native build is failing, error log: ~/build/tmp/work/x86_64-linux/spirv-llvm-translator-native/12.0.0-r0/git/lib/SPIRV/SPIRVLowerSPIRBlocks.cpp | /bin/sh: 1: ccache: not found Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
* clang: Use shared-libs when building native clang as wellKhem Raj2021-03-011-1/+1
| | | | | | | | | This ensures that llvm-config works properly, since target clang is building shared libs, we should match it on clang native and nativesdk as well, this helps in cross compiling packages which depend on llvm-config to get llvm libs list during build/link Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libclc: Add dependency on spirv-llvm-translatorKhem Raj2021-03-011-3/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* spirv-llvm-translator: Add recipeKhem Raj2021-03-012-0/+66
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm: Recognise yoe and poky vendors as OE based distroKhem Raj2021-03-012-0/+26
| | | | | | This helps llvm decide correctly on gcc installation structure Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 12.0.0 RC2Khem Raj2021-03-0134-411/+270
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to 11.1.0Khem Raj2021-02-201-1/+1
| | | | | | | | | * 1fdec59bffc1 [lldb] Fix fallout caused by D89156 on 11.0.1 for MacOS * 85fcd4655947 workflows: Re-enable lldb test on Mac OS X * 17e842f3785f workflows: Update action branch names * e18e509bdb45 workflows: Add job to check for ABI changes in libclang.so and libclang-cpp.so Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libclc: Remove C++ language level overrideZoltán Böszörményi2021-02-181-2/+0
| | | | Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
* clang: Merge llvm-common into clangZoltán Böszörményi2021-02-184-22/+9
| | | | Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
* libclc: Depend on spirv-tools if LLVM version is 12 or newerZoltán Böszörményi2021-02-141-1/+3
| | | | Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
* libclc: Add BBCLASSEXTEND = "native nativesdk"Zoltán Böszörményi2021-02-141-0/+2
| | | | Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
* libclc: Don't override cmake specific compiler and linker optionsZoltán Böszörményi2021-02-141-3/+2
| | | | Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
* compiler-rt: Disable building memprofKhem Raj2021-02-141-0/+1
| | | | | | | | | memprof/sanitizers need libcrypt to build, therefore remove it from building compiler-rt so we do not need libcrypt dependency, perhaps a new recipe to build sanitizers separately should be added which should also build memprof. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libclc: Add recipeZoltán Böszörményi2021-02-131-0/+38
| | | | | | This is a pre-requisite to enable OpenCL in Mesa. Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
* llvm-project-source: Add patch to make libclc explicitly use python3Zoltán Böszörményi2021-02-132-0/+30
| | | | Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
* llvm-project-source: Add a patch to fix LLVM bug 48921Zoltán Böszörményi2021-02-132-0/+86
| | | | | | | | | | The patch was taken from https://bugs.llvm.org/show_bug.cgi?id=48921 Unfortunately, LLVM 11 is already closed so the patch was only accepted into LLVM 12. Also reported at https://gitlab.freedesktop.org/mesa/mesa/-/issues/4107 Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
* compiler-rt: Disable sanitizer buildsKhem Raj2021-02-011-3/+2
| | | | | | | | | | | Sanitizers include crypt.h from libcrypt to build, so when using llvm runtime this becomes important to break the cyclic dependency compiler-rt->libxcrypt->compiler-rt Fixes #425 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang/llvm: Upgrade to 11.1.0-rc2Khem Raj2021-01-261-3/+3
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: for x86_64, set Yocto GCC install search pathHongxu Jia2021-01-252-0/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Under Yocto host, while using clang-native to build, it searches install host gcc failed which causing include file not found [snip] |clang++ -target x86_64-linux -MMD -MF src/base/files/file_path_constants.o.d -I../../../tools/gn/src -I. \ -isystem/tmp-glibc/work/x86_64-linux/gn-native/87.0.4280.141-r0/recipe-sysroot-native/usr/include -O2 -pipe \ -std=c++17 -c ../../../tools/gn/src/base/files/file_path_constants.cc -o src/base/files/file_path_constants.o |../../../tools/gn/src/base/files/file_path_constants.cc:7:10: fatal error: 'iterator' file not found |#include <iterator> | ^~~~~~~~ [snip] Set three Yocto based GCC triple: poky, oe-core and wind river Before aplly the patch [snip] $ ../recipe-sysroot-native/usr/bin/clang++ -v clang version 11.0.1 (https://github.com/llvm/llvm-project 43ff75f2c3feef64f9d73328230d34dac8832a91) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /buildarea/raid5/hjia/wrlinux-20/build_master-wr_browser_2021012017/build-gn-native/tmp-glibc/work/x86_64-linux/gn-native/87.0.4280.141-r0/chromium-87.0.4280.141/../recipe-sysroot-native/usr/bin [snip] After aplly the patch: [snip] $ clang-11 -v clang version 11.0.1 (https://github.com/llvm/llvm-project 22c3241ff9a6224261df48d0258957fd8acc3d64) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /buildarea/raid5/hjia/wrlinux-20/build_master-wr_browser_2021012017/build/tmp-glibc/work/x86_64-linux/clang-native/11.0.1-r0/build/bin Found candidate GCC installation: /usr/lib//x86_64-wrs-linux/10.1.0 Found candidate GCC installation: /usr/lib/gcc/x86_64-wrs-linux/10.1.0 Selected GCC installation: /usr/lib//x86_64-wrs-linux/10.1.0 Candidate multilib: .;@m64 Selected multilib: .;@m64 [snip] BTW, it is hardly to insert a triple by the replacement of TARGET_SYS (=${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}), since TARGET_VENDOR is different between clang and clang-native Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
* clang: Update to 11.0.1 rc2Khem Raj2020-12-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Changes in this bump * 43ff75f2c3fe [AArch64][GlobalISel] Promote scalar G_SHL constant shift amounts to s64. * 9caca7241d44 [AArch64][GlobalISel] Use the look-through constant helper for the shift s32->s64 custom legalization. * d104e582838f [CMake] Avoid __FakeVCSRevision.h with no git repository * f5f8d86dc4c9 Don't error for zero-length arange entries * 280e47ea0e83 [AArch64][GlobalISel] Narrow 128-bit regs to 64-bit regs in emitTestBit * 9e16c5bfae6e [AArch64][GlobalISel] Look through a G_ZEXT when trying to match shift-extended register offsets. * 6ec777c2f649 [Support] PR42623: Avoid setting the delete-on-close bit if a TempFile doesn't reside on a local drive * f684355e0292 [Support][Windows] Fix incorrect GetFinalPathNameByHandleW() return value check in realPathFromHandle() * 98f575ff55bf Don't reject calls to MinGW's unusual _setjmp declaration. * 0312bec0d757 Recognize setjmp and friends as builtins even if jmp_buf is not declared yet. * fdab756331f3 [Sema] Handle objc_super special lookup when checking builtin compatibility * adf845300c9c [Sema] Introduce BuiltinAttr, per-declaration builtin-ness * 200eb1abe2a1 Stop ExtractTypeForDeductionGuide from recursing on TypeSourceInfo * 700baa009dc6 [MC][ELF] Accept abbreviated form with sh_flags and sh_entsize * 861b2a24bc49 [KernelAddressSanitizer] Fix globals exclusion for indirect aliases * 8511a8df838f [InstCombine] canonicalizeSaturatedAdd(): last fold is only valid for strict comparison (PR48390) * 934376da5851 [NFC][InstCombine] Add test coverage for @llvm.uadd.sat canonicalization * fc23bc9b30bf [SemaTemplate] Stop passing insertion position around during VarTemplate instantiation * ca8de9ad8895 [X86] Fix crash with i64 bitreverse on 32-bit targets with XOP. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rpm: Use gcc for building rpm on all mips archesKhem Raj2020-12-141-2/+2
| | | | | | llvm openmp implementation is not yet ported to mips Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on 11.x releaseKhem Raj2020-12-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Brings in following fixes * abeec5d081f [lldb] Report old modules from ModuleList::ReplaceEquivalent * b618cf7a378 [lldb] GetSharedModule: Collect old modules in SmallVector * 93fffe98d5c [lldb] Minidump: check for .text hash match with directory * 393eac16e49 Add hashing of the .text section to ProcessMinidump. * 98fa273339a [lldb] Normalize paths in new test * 561e1ce1a82 [lldb] Fix GetRemoteSharedModule fallback logic * 852f4d8eb6d [Sparc] Remove cast that truncates immediate operands to 32 bits. * b091768e60e [LLD][COFF] Fix crash with /summary and PCH input files * 59012b685fd [CUDA] Another attempt to fix early inclusion of <new> from libstdc++ * aa29049404e [CUDA] Unbreak CUDA compilation with -std=c++20 * 14d60e9a80d [X86][AVX] Only share broadcasts of different widths from the same SDValue of the same SDNode (PR48215) * a21e609d6a2 [X86] Add broadcast merge test case for PR48215 * 0feb4bc5295 Fix missed SI_RETURN_TO_EPILOG in pre-emit peephole * b430f94d005 [Clang][CodeGen][RISCV] Fix hard float ABI for struct with empty struct and complex * a4eaecf122e [Clang][CodeGen][RISCV] Fix hard float ABI test cases with empty struct * ba223fa19d3 [Clang][CodeGen][RISCV] Add hard float ABI tests with empty struct * edc57e7e7ca Guard `find_library(tensorflow_c_api ...)` by checking for TENSORFLOW_C_LIB_PATH to be set by the user * 542174d77de Implement .variant_pcs directive * 724f62a5024 Add fatal error for unnamed SVE variadic arguments * a60b9f1bf32 Add fatal error when running out of registers for SVE tuple call arguments * 79cac55bf04 Fix unwind info relocation with large code model on AArch64 * bb852a09ae3 [GNU ObjC] Fix a regression listing methods twice. * 2cf5c80ab6d [HIP] Fix static-lib test CHECK bug * 19a8a7445dd [HIP] Fix HIP test on windows due to lld suffix * 8b89bc0de0e [WebAssembly] Don't fold frame offset for global addresses * a082c730b89 [WebAssembly] Fix FastISel address calculation bug * 12c4c6cd770 (tag: llvmorg-11.0.1-rc1) Build reproducible tarballs for releases * fd623ba8061 Fix crash after looking up dwo_id=0 in CU index. * f590845f501 Revert "[clang-format] Fix AlignConsecutive on PP blocks" * 890fdb8031e [OpenMP] Use __OPENMP_NVPTX__ instead of _OPENMP in complex wrapper headers. * 075cca34483 [RTDYLD] support absolute relocations where needed * d8e8ae195a2 Revert "[SemaTemplate] Stop passing insertion position around during VarTemplate instantiation" * e4500bab8b2 [AArch64][GlobalISel] Handle rtcGPR64RegClassID in AArch64RegisterBankInfo::getRegBankFromRegClass() * 03565ffd5da [CMake][compiler-rt][libunwind] Compile assembly files as ASM not C, unify workarounds * 8ac70957806 [SemaTemplate] Stop passing insertion position around during VarTemplate instantiation * bbe6cbbed8c [stack-clash] Fix probing of dynamic alloca * aac36687f79 Fix interaction between stack alignment and inline-asm stack clash protection * a1e0363c740 Fix limit behavior of dynamic alloca * 3e8d9807d66 [X86] Don't produce bad x86andp nodes for i1 vectors * 973b95e0a84 [MCA][LSUnit] Correctly update the internal group flags on store barrier execution. Fixes PR48024. * 06f479cba3a [CUDA] Extract CUDA version from cuda.h if version.txt is not found * d50044e809d [CUDA] Improve clang's ability to detect recent CUDA versions. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rpm: Use gcc on arches where llvm omp is not availableKhem Raj2020-11-171-0/+6
| | | | | | | rpm needs omp, therefore it wont compile with clang on architectures not supporting llvm libomp e.g. rv32 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Fix the __NR_futex_time64 patchKhem Raj2020-11-171-12/+7
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on release/11.x branchKhem Raj2020-11-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | The minor release is bumped to 11.0.1 Changes is this bump are * 0874e7ef66c Allow init_priority values <= 100 and > 65535 within system headers. * 02004c9e7c9 [ADT] Fix for ImmutableMapRef * 85ce339f1bd [cmake] Fix build of attribute plugin example on Windows * ef4ffcafbb2 [DAE] MarkLive in MarkValue(MaybeLive) if any use is live * 3c687677678 DeferredDiagnosticsEmitter crashes * 701addff1b7 [clang][Sema] Fix PR47676: Handle dependent AltiVec C-style cast * 5ad2592b5dc [X86] Fix cpu name typos * 8fc424f26bf Add release tarballs for libclc * 83716db47f9 [ELF] -r: don't crash when a non-SHF_LINK_ORDER orphan is added before a SHF_LINK_ORDER orphan * 1ff84a04aeb BPF: fix incorrect DAG2DAG load optimization * 38399ced95b [ConstantFold] Make areGlobalsPotentiallyEqual less aggressive. * b59b6b662bb Import github action definitions from release/10.x branch * 3039965645c Bump version to 11.0.1 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update riscv32 fix to match upstream submitted versionKhem Raj2020-11-151-11/+19
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lto: Override LTO variable from oe-core for thin-ltoKhem Raj2020-11-131-3/+3
| | | | | | If thin-lto is used in DISTRO_FEATURES then enable thin-lto Signed-off-by: Khem Raj <raj.khem@gmail.com>
* openmp: Disable for riscv32Khem Raj2020-10-271-0/+1
| | | | | | Port is not available yet Signed-off-by: Khem Raj <raj.khem@gmail.com>
* build shared nativesdk clangDaniel Dittmann2020-10-211-1/+1
| | | | Signed-off-by: Daniel Dittmann <daniel.dittmann@rohde-schwarz.com>
* Disable LLDB on riscv{32,64}David Abdurachmanov2020-10-161-1/+6
| | | | | | | | | There is no upstream support for RISCV in LLDB at this point thus disable it. Not disabling it would result in undefined references due to lack of RISCV implementation. Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Fix get_clang_arch and LLVM targetsDavid Abdurachmanov2020-10-161-2/+2
| | | | | | | | | | | | | | | | | | | LLVM_TARGET_ARCH must be riscv32 or riscv64, which results in LLVM_NATIVE_ARCH being RISCV. We cannot pass RISCV to LLVM_TARGET_ARCH as that will cause "Unknown architecture" error at configure time. We already have all architectures listed in LLVM_TARGETS_TO_BUILD thus there is no need to append additional ones. That results in LLVM_NATIVE_ARCH being listed multiple times, e.g.: -DLLVM_TARGETS_TO_BUILD='AMDGPU;AArch64;ARM;BPF;Mips;PowerPC;RISCV;X86;RISCV;RISCV;RISCV' Furthermore get_clang_host_arch(), get_clang_target_arch() and get_clang_arch() now return riscv32 or riscv64, which is not a valid value for -DLLVM_TARGETS_TO_BUILD. The valid value is RISCV here. Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Allow riscv32 and riscv64 in COMPATIBLE_HOSTDavid Abdurachmanov2020-10-161-3/+0
| | | | | Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* openmp: enable for riscv{32,64}David Abdurachmanov2020-10-161-2/+0
| | | | | Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Use python3 explicitly in scriptsKhem Raj2020-10-152-0/+116
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Define LLVM_HOST_TRIPLEKhem Raj2020-10-151-0/+1
| | | | | | This helps ensure that lldb-server gets correct tripets on target Signed-off-by: Khem Raj <raj.khem@gmail.com>
* CastXML: new recipeDaniel McGregor2020-10-081-0/+29
| | | | | | | | | CastXML is an AST analysis tool similar to and succeeding gccxml. It is used to generate an XML description of a C or C++ abstract syntax tree. Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 11.0.0-rc6Khem Raj2020-10-081-1/+1
| | | | | | | | | * 176249bd673 (tag: llvmorg-11.0.0-rc6, upstream/release/11.x, origin/release/11.x) [CodeGen][TailDuplicator] Don't duplicate blocks with INLINEASM_BR * e84852be644 Add ability to turn off -fpch-instantiate-templates in clang-cl * 121babae56e [SelectionDAG] Don't remove unused negated constant immediately * f80e6d63423 ReleaseNotes: mention the machine outliner for ARM Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on 11.x releaseKhem Raj2020-10-031-1/+1
| | | | | | | * 636ecdd1479 (upstream/release/11.x, origin/release/11.x) Fix indentation for PowerPC ReleaseNotes * b6efbd6b5f2 LLVM release notes: JIT changes Signed-off-by: Khem Raj <raj.khem@gmail.com>