[NFC] Inclusive language: Remove instances of master in URLs
[NFC] This patch fixes URLs containing "master". Old URLs were either broken or redirecting to the new URL. Reviewed By: #libc, ldionne, mehdi_amini Differential Revision: https://reviews.llvm.org/D113186
This commit is contained in:
parent
f2703c3c33
commit
c71fbdd87b
@ -7,7 +7,7 @@
|
|||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
//
|
//
|
||||||
// This file contains structs based on the LSP specification at
|
// This file contains structs based on the LSP specification at
|
||||||
// https://github.com/Microsoft/language-server-protocol/blob/master/protocol.md
|
// https://github.com/Microsoft/language-server-protocol/blob/main/protocol.md
|
||||||
//
|
//
|
||||||
// This is not meant to be a complete implementation, new interfaces are added
|
// This is not meant to be a complete implementation, new interfaces are added
|
||||||
// when they're needed.
|
// when they're needed.
|
||||||
@ -1172,7 +1172,7 @@ enum class InsertTextFormat {
|
|||||||
/// typing in one will update others too.
|
/// typing in one will update others too.
|
||||||
///
|
///
|
||||||
/// See also:
|
/// See also:
|
||||||
/// https//github.com/Microsoft/vscode/blob/master/src/vs/editor/contrib/snippet/common/snippet.md
|
/// https://github.com/Microsoft/vscode/blob/main/src/vs/editor/contrib/snippet/snippet.md
|
||||||
Snippet = 2,
|
Snippet = 2,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -149,7 +149,7 @@ the configuration (without a prefix: ``Auto``).
|
|||||||
<https://google.github.io/styleguide/cppguide.html>`_
|
<https://google.github.io/styleguide/cppguide.html>`_
|
||||||
* ``Chromium``
|
* ``Chromium``
|
||||||
A style complying with `Chromium's style guide
|
A style complying with `Chromium's style guide
|
||||||
<https://chromium.googlesource.com/chromium/src/+/master/styleguide/styleguide.md>`_
|
<https://chromium.googlesource.com/chromium/src/+/refs/heads/main/styleguide/styleguide.md>`_
|
||||||
* ``Mozilla``
|
* ``Mozilla``
|
||||||
A style complying with `Mozilla's style guide
|
A style complying with `Mozilla's style guide
|
||||||
<https://developer.mozilla.org/en-US/docs/Developer_Guide/Coding_Style>`_
|
<https://developer.mozilla.org/en-US/docs/Developer_Guide/Coding_Style>`_
|
||||||
|
@ -53,7 +53,7 @@ several style guides are hard-coded:
|
|||||||
FormatStyle getGoogleStyle();
|
FormatStyle getGoogleStyle();
|
||||||
|
|
||||||
/// Returns a format style complying with Chromium's style guide:
|
/// Returns a format style complying with Chromium's style guide:
|
||||||
/// https://chromium.googlesource.com/chromium/src/+/master/styleguide/styleguide.md
|
/// https://chromium.googlesource.com/chromium/src/+/refs/heads/main/styleguide/styleguide.md
|
||||||
FormatStyle getChromiumStyle();
|
FormatStyle getChromiumStyle();
|
||||||
|
|
||||||
/// Returns a format style complying with the GNU coding standards:
|
/// Returns a format style complying with the GNU coding standards:
|
||||||
|
@ -3139,7 +3139,7 @@ extension should use reserved identifier prefix e.g. amd, arm, intel.
|
|||||||
|
|
||||||
Clang also supports language extensions documented in `The OpenCL C Language
|
Clang also supports language extensions documented in `The OpenCL C Language
|
||||||
Extensions Documentation
|
Extensions Documentation
|
||||||
<https://github.com/KhronosGroup/Khronosdotorg/blob/master/api/opencl/assets/OpenCL_LangExt.pdf>`_.
|
<https://github.com/KhronosGroup/Khronosdotorg/blob/main/api/opencl/assets/OpenCL_LangExt.pdf>`_.
|
||||||
|
|
||||||
OpenCL-Specific Attributes
|
OpenCL-Specific Attributes
|
||||||
--------------------------
|
--------------------------
|
||||||
|
@ -3572,7 +3572,7 @@ void CXXNameMangler::mangleAArch64NeonVectorType(const DependentVectorType *T) {
|
|||||||
// mangling scheme, it will be specified in the next revision. The mangling
|
// mangling scheme, it will be specified in the next revision. The mangling
|
||||||
// scheme is otherwise defined in the appendices to the Procedure Call Standard
|
// scheme is otherwise defined in the appendices to the Procedure Call Standard
|
||||||
// for the Arm Architecture, see
|
// for the Arm Architecture, see
|
||||||
// https://github.com/ARM-software/abi-aa/blob/master/aapcs64/aapcs64.rst#appendix-c-mangling
|
// https://github.com/ARM-software/abi-aa/blob/main/aapcs64/aapcs64.rst#appendix-c-mangling
|
||||||
void CXXNameMangler::mangleAArch64FixedSveVectorType(const VectorType *T) {
|
void CXXNameMangler::mangleAArch64FixedSveVectorType(const VectorType *T) {
|
||||||
assert((T->getVectorKind() == VectorType::SveFixedLengthDataVector ||
|
assert((T->getVectorKind() == VectorType::SveFixedLengthDataVector ||
|
||||||
T->getVectorKind() == VectorType::SveFixedLengthPredicateVector) &&
|
T->getVectorKind() == VectorType::SveFixedLengthPredicateVector) &&
|
||||||
|
@ -1386,7 +1386,7 @@ FormatStyle getChromiumStyle(FormatStyle::LanguageKind Language) {
|
|||||||
ChromiumStyle.ContinuationIndentWidth = 8;
|
ChromiumStyle.ContinuationIndentWidth = 8;
|
||||||
ChromiumStyle.IndentWidth = 4;
|
ChromiumStyle.IndentWidth = 4;
|
||||||
// See styleguide for import groups:
|
// See styleguide for import groups:
|
||||||
// https://chromium.googlesource.com/chromium/src/+/master/styleguide/java/java.md#Import-Order
|
// https://chromium.googlesource.com/chromium/src/+/refs/heads/main/styleguide/java/java.md#Import-Order
|
||||||
ChromiumStyle.JavaImportGroups = {
|
ChromiumStyle.JavaImportGroups = {
|
||||||
"android",
|
"android",
|
||||||
"androidx",
|
"androidx",
|
||||||
|
@ -1060,7 +1060,7 @@ struct AdditionalKeywords {
|
|||||||
bool IsJavaScriptIdentifier(const FormatToken &Tok,
|
bool IsJavaScriptIdentifier(const FormatToken &Tok,
|
||||||
bool AcceptIdentifierName = true) const {
|
bool AcceptIdentifierName = true) const {
|
||||||
// Based on the list of JavaScript & TypeScript keywords here:
|
// Based on the list of JavaScript & TypeScript keywords here:
|
||||||
// https://github.com/microsoft/TypeScript/blob/master/src/compiler/scanner.ts#L74
|
// https://github.com/microsoft/TypeScript/blob/main/src/compiler/scanner.ts#L74
|
||||||
switch (Tok.Tok.getKind()) {
|
switch (Tok.Tok.getKind()) {
|
||||||
case tok::kw_break:
|
case tok::kw_break:
|
||||||
case tok::kw_case:
|
case tok::kw_case:
|
||||||
|
@ -4061,7 +4061,7 @@ bool TokenAnnotator::canBreakBefore(const AnnotatedLine &Line,
|
|||||||
Keywords.kw_interface, Keywords.kw_type, Keywords.kw_var,
|
Keywords.kw_interface, Keywords.kw_type, Keywords.kw_var,
|
||||||
Keywords.kw_let, tok::kw_const))
|
Keywords.kw_let, tok::kw_const))
|
||||||
// See grammar for 'declare' statements at:
|
// See grammar for 'declare' statements at:
|
||||||
// https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md#A.10
|
// https://github.com/Microsoft/TypeScript/blob/main/doc/spec-ARCHIVED.md#A.10
|
||||||
return false;
|
return false;
|
||||||
if (Left.isOneOf(Keywords.kw_module, tok::kw_namespace) &&
|
if (Left.isOneOf(Keywords.kw_module, tok::kw_namespace) &&
|
||||||
Right.isOneOf(tok::identifier, tok::string_literal))
|
Right.isOneOf(tok::identifier, tok::string_literal))
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
// Note: -fopemp and -fopenmp-simd behavior are expected to be the same.
|
// Note: -fopemp and -fopenmp-simd behavior are expected to be the same.
|
||||||
|
|
||||||
// This test checks the values of Narrowest Data Size (NDS), as defined in
|
// This test checks the values of Narrowest Data Size (NDS), as defined in
|
||||||
// https://github.com/ARM-software/abi-aa/tree/master/vfabia64
|
// https://github.com/ARM-software/abi-aa/tree/main/vfabia64
|
||||||
//
|
//
|
||||||
// NDS is used to compute the <vlen> token in the name of AdvSIMD
|
// NDS is used to compute the <vlen> token in the name of AdvSIMD
|
||||||
// vector functions when no `simdlen` is specified, with the rule:
|
// vector functions when no `simdlen` is specified, with the rule:
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
// Note: -fopemp and -fopenmp-simd behavior are expected to be the same.
|
// Note: -fopemp and -fopenmp-simd behavior are expected to be the same.
|
||||||
|
|
||||||
// This test checks the values of Widest Data Size (WDS), as defined
|
// This test checks the values of Widest Data Size (WDS), as defined
|
||||||
// in https://github.com/ARM-software/abi-aa/tree/master/vfabia64
|
// in https://github.com/ARM-software/abi-aa/tree/main/vfabia64
|
||||||
//
|
//
|
||||||
// WDS is used to check the accepted values <N> of `simdlen(<N>)` when
|
// WDS is used to check the accepted values <N> of `simdlen(<N>)` when
|
||||||
// targeting fixed-length SVE vector function names. The values of
|
// targeting fixed-length SVE vector function names. The values of
|
||||||
|
@ -39,8 +39,8 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<p>
|
<p>
|
||||||
<b>Site:</b>
|
<b>Site:</b>
|
||||||
<a href="https://chromium.googlesource.com/chromium/src/+/master/docs/clang.md">
|
<a href="https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/clang.md">
|
||||||
https://chromium.googlesource.com/chromium/src/+/master/docs/clang.md</a>
|
https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/clang.md</a>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Notes on using Clang to build the Chromium web browser.
|
Notes on using Clang to build the Chromium web browser.
|
||||||
|
@ -91,7 +91,7 @@ WORKDIR /home/libcxx-builder
|
|||||||
|
|
||||||
# Install the Buildkite agent and dependencies. This must be done as non-root
|
# Install the Buildkite agent and dependencies. This must be done as non-root
|
||||||
# for the Buildkite agent to be installed in a path where we can find it.
|
# for the Buildkite agent to be installed in a path where we can find it.
|
||||||
RUN bash -c "$(curl -sL https://raw.githubusercontent.com/buildkite/agent/master/install.sh)"
|
RUN bash -c "$(curl -sL https://raw.githubusercontent.com/buildkite/agent/main/install.sh)"
|
||||||
ENV PATH="${PATH}:/home/libcxx-builder/.buildkite-agent/bin"
|
ENV PATH="${PATH}:/home/libcxx-builder/.buildkite-agent/bin"
|
||||||
RUN echo "tags=\"queue=libcxx-builders,arch=$(uname -m),os=linux\"" >> "/home/libcxx-builder/.buildkite-agent/buildkite-agent.cfg"
|
RUN echo "tags=\"queue=libcxx-builders,arch=$(uname -m),os=linux\"" >> "/home/libcxx-builder/.buildkite-agent/buildkite-agent.cfg"
|
||||||
|
|
||||||
|
@ -205,6 +205,6 @@ Missing features
|
|||||||
supported.
|
supported.
|
||||||
- No support for creating shared libraries. The spec for shared libraries in
|
- No support for creating shared libraries. The spec for shared libraries in
|
||||||
WebAssembly is still in flux:
|
WebAssembly is still in flux:
|
||||||
https://github.com/WebAssembly/tool-conventions/blob/master/DynamicLinking.md
|
https://github.com/WebAssembly/tool-conventions/blob/main/DynamicLinking.md
|
||||||
|
|
||||||
.. _linking: https://github.com/WebAssembly/tool-conventions/blob/master/Linking.md
|
.. _linking: https://github.com/WebAssembly/tool-conventions/blob/main/Linking.md
|
||||||
|
@ -632,7 +632,7 @@ static void createSyntheticSymbols() {
|
|||||||
// __table_base) from the environment and use these as the offset at
|
// __table_base) from the environment and use these as the offset at
|
||||||
// which to load our static data and function table.
|
// which to load our static data and function table.
|
||||||
// See:
|
// See:
|
||||||
// https://github.com/WebAssembly/tool-conventions/blob/master/DynamicLinking.md
|
// https://github.com/WebAssembly/tool-conventions/blob/main/DynamicLinking.md
|
||||||
auto *globalType = is64 ? &globalTypeI64 : &globalTypeI32;
|
auto *globalType = is64 ? &globalTypeI64 : &globalTypeI32;
|
||||||
WasmSym::memoryBase = createUndefinedGlobal("__memory_base", globalType);
|
WasmSym::memoryBase = createUndefinedGlobal("__memory_base", globalType);
|
||||||
WasmSym::tableBase = createUndefinedGlobal("__table_base", globalType);
|
WasmSym::tableBase = createUndefinedGlobal("__table_base", globalType);
|
||||||
|
@ -71,7 +71,7 @@ protected:
|
|||||||
// Create the custom "dylink" section containing information for the dynamic
|
// Create the custom "dylink" section containing information for the dynamic
|
||||||
// linker.
|
// linker.
|
||||||
// See
|
// See
|
||||||
// https://github.com/WebAssembly/tool-conventions/blob/master/DynamicLinking.md
|
// https://github.com/WebAssembly/tool-conventions/blob/main/DynamicLinking.md
|
||||||
class DylinkSection : public SyntheticSection {
|
class DylinkSection : public SyntheticSection {
|
||||||
public:
|
public:
|
||||||
DylinkSection() : SyntheticSection(llvm::wasm::WASM_SEC_CUSTOM, "dylink.0") {}
|
DylinkSection() : SyntheticSection(llvm::wasm::WASM_SEC_CUSTOM, "dylink.0") {}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// Example source from breakpad's linux tutorial
|
// Example source from breakpad's linux tutorial
|
||||||
// https://chromium.googlesource.com/breakpad/breakpad/+/master/docs/linux_starter_guide.md
|
// https://chromium.googlesource.com/breakpad/breakpad/+/main/docs/linux_starter_guide.md
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
@ -812,7 +812,7 @@ if(LLVM_INCLUDE_TESTS)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# For up-to-date instructions for installing the Tensorflow dependency, refer to
|
# For up-to-date instructions for installing the Tensorflow dependency, refer to
|
||||||
# the bot setup script: https://github.com/google/ml-compiler-opt/blob/master/buildbot/buildbot_init.sh
|
# the bot setup script: https://github.com/google/ml-compiler-opt/blob/main/buildbot/buildbot_init.sh
|
||||||
# In this case, the latest C API library is available for download from
|
# In this case, the latest C API library is available for download from
|
||||||
# https://www.tensorflow.org/install/lang_c.
|
# https://www.tensorflow.org/install/lang_c.
|
||||||
# We will expose the conditional compilation variable,
|
# We will expose the conditional compilation variable,
|
||||||
@ -846,7 +846,7 @@ if (TENSORFLOW_C_LIB_PATH)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# For up-to-date instructions for installing the Tensorflow dependency, refer to
|
# For up-to-date instructions for installing the Tensorflow dependency, refer to
|
||||||
# the bot setup script: https://github.com/google/ml-compiler-opt/blob/master/buildbot/buildbot_init.sh
|
# the bot setup script: https://github.com/google/ml-compiler-opt/blob/main/buildbot/buildbot_init.sh
|
||||||
# Specifically, assuming python3 is installed:
|
# Specifically, assuming python3 is installed:
|
||||||
# python3 -m pip install --upgrade pip && python3 -m pip install --user tf_nightly==2.3.0.dev20200528
|
# python3 -m pip install --upgrade pip && python3 -m pip install --user tf_nightly==2.3.0.dev20200528
|
||||||
# Then set TENSORFLOW_AOT_PATH to the package install - usually it's ~/.local/lib/python3.7/site-packages/tensorflow
|
# Then set TENSORFLOW_AOT_PATH to the package install - usually it's ~/.local/lib/python3.7/site-packages/tensorflow
|
||||||
|
@ -144,9 +144,9 @@ device side.
|
|||||||
----------------------------
|
----------------------------
|
||||||
|
|
||||||
In clang, ``math.h`` and ``cmath`` are available and `pass
|
In clang, ``math.h`` and ``cmath`` are available and `pass
|
||||||
<https://github.com/llvm/llvm-test-suite/blob/master/External/CUDA/math_h.cu>`_
|
<https://github.com/llvm/llvm-test-suite/blob/main/External/CUDA/math_h.cu>`_
|
||||||
`tests
|
`tests
|
||||||
<https://github.com/llvm/llvm-test-suite/blob/master/External/CUDA/cmath.cu>`_
|
<https://github.com/llvm/llvm-test-suite/blob/main/External/CUDA/cmath.cu>`_
|
||||||
adapted from libc++'s test suite.
|
adapted from libc++'s test suite.
|
||||||
|
|
||||||
In nvcc ``math.h`` and ``cmath`` are mostly available. Versions of ``::foof``
|
In nvcc ``math.h`` and ``cmath`` are mostly available. Versions of ``::foof``
|
||||||
|
@ -219,7 +219,7 @@ http://www.nwchem-sw.org/index.php/Benchmarks
|
|||||||
|
|
||||||
TVM
|
TVM
|
||||||
----
|
----
|
||||||
https://github.com/dmlc/tvm/tree/master/apps/benchmark
|
https://github.com/dmlc/tvm/tree/main/apps/benchmark
|
||||||
|
|
||||||
HydroBench
|
HydroBench
|
||||||
----------
|
----------
|
||||||
@ -227,7 +227,7 @@ https://github.com/HydroBench/Hydro
|
|||||||
|
|
||||||
ParRes
|
ParRes
|
||||||
------
|
------
|
||||||
https://github.com/ParRes/Kernels/tree/master/Cxx11
|
https://github.com/ParRes/Kernels/tree/default/Cxx11
|
||||||
|
|
||||||
Applications/Libraries
|
Applications/Libraries
|
||||||
======================
|
======================
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
//
|
//
|
||||||
// This file defines manifest constants for the wasm object file format.
|
// This file defines manifest constants for the wasm object file format.
|
||||||
// See: https://github.com/WebAssembly/design/blob/master/BinaryEncoding.md
|
// See: https://github.com/WebAssembly/design/blob/main/BinaryEncoding.md
|
||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
// This file declares the WasmObjectFile class, which implements the ObjectFile
|
// This file declares the WasmObjectFile class, which implements the ObjectFile
|
||||||
// interface for Wasm files.
|
// interface for Wasm files.
|
||||||
//
|
//
|
||||||
// See: https://github.com/WebAssembly/design/blob/master/BinaryEncoding.md
|
// See: https://github.com/WebAssembly/design/blob/main/BinaryEncoding.md
|
||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
|
@ -1087,7 +1087,7 @@ uint32_t WasmObjectWriter::writeDataSection(const MCAsmLayout &Layout) {
|
|||||||
void WasmObjectWriter::writeRelocSection(
|
void WasmObjectWriter::writeRelocSection(
|
||||||
uint32_t SectionIndex, StringRef Name,
|
uint32_t SectionIndex, StringRef Name,
|
||||||
std::vector<WasmRelocationEntry> &Relocs) {
|
std::vector<WasmRelocationEntry> &Relocs) {
|
||||||
// See: https://github.com/WebAssembly/tool-conventions/blob/master/Linking.md
|
// See: https://github.com/WebAssembly/tool-conventions/blob/main/Linking.md
|
||||||
// for descriptions of the reloc sections.
|
// for descriptions of the reloc sections.
|
||||||
|
|
||||||
if (Relocs.empty())
|
if (Relocs.empty())
|
||||||
|
@ -359,7 +359,7 @@ Error WasmObjectFile::parseDylinkSection(ReadContext &Ctx) {
|
|||||||
|
|
||||||
Error WasmObjectFile::parseDylink0Section(ReadContext &Ctx) {
|
Error WasmObjectFile::parseDylink0Section(ReadContext &Ctx) {
|
||||||
// See
|
// See
|
||||||
// https://github.com/WebAssembly/tool-conventions/blob/master/DynamicLinking.md
|
// https://github.com/WebAssembly/tool-conventions/blob/main/DynamicLinking.md
|
||||||
HasDylinkSection = true;
|
HasDylinkSection = true;
|
||||||
|
|
||||||
const uint8_t *OrigEnd = Ctx.End;
|
const uint8_t *OrigEnd = Ctx.End;
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
The object format emitted by the WebAssembly backed is documented in:
|
The object format emitted by the WebAssembly backed is documented in:
|
||||||
|
|
||||||
* https://github.com/WebAssembly/tool-conventions/blob/master/Linking.md
|
* https://github.com/WebAssembly/tool-conventions/blob/main/Linking.md
|
||||||
|
|
||||||
The C ABI is described in:
|
The C ABI is described in:
|
||||||
|
|
||||||
* https://github.com/WebAssembly/tool-conventions/blob/master/BasicCABI.md
|
* https://github.com/WebAssembly/tool-conventions/blob/main/BasicCABI.md
|
||||||
|
|
||||||
For more information on WebAssembly itself, see the home page:
|
For more information on WebAssembly itself, see the home page:
|
||||||
|
|
||||||
@ -31,8 +31,8 @@ For more information, see:
|
|||||||
|
|
||||||
The following documents contain some information on the semantics and binary
|
The following documents contain some information on the semantics and binary
|
||||||
encoding of WebAssembly itself:
|
encoding of WebAssembly itself:
|
||||||
* https://github.com/WebAssembly/design/blob/master/Semantics.md
|
* https://github.com/WebAssembly/design/blob/main/Semantics.md
|
||||||
* https://github.com/WebAssembly/design/blob/master/BinaryEncoding.md
|
* https://github.com/WebAssembly/design/blob/main/BinaryEncoding.md
|
||||||
|
|
||||||
Some notes on ways that the generated code could be improved follow:
|
Some notes on ways that the generated code could be improved follow:
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
|
|||||||
const auto Info = VFABI::tryDemangleForVFABI(MangledName, *M);
|
const auto Info = VFABI::tryDemangleForVFABI(MangledName, *M);
|
||||||
|
|
||||||
// Do not optimize away the return value. Inspired by
|
// Do not optimize away the return value. Inspired by
|
||||||
// https://github.com/google/benchmark/blob/master/include/benchmark/benchmark.h#L307-L345
|
// https://github.com/google/benchmark/blob/main/include/benchmark/benchmark.h#L307-L345
|
||||||
asm volatile("" : : "r,m"(Info) : "memory");
|
asm volatile("" : : "r,m"(Info) : "memory");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -63,7 +63,7 @@ before starting the build.
|
|||||||
|
|
||||||
GN has extensive built-in help; try e.g. ``llvm/utils/gn/gn.py help gen`` to see
|
GN has extensive built-in help; try e.g. ``llvm/utils/gn/gn.py help gen`` to see
|
||||||
the help for the ``gen`` command. The full GN reference is also `available
|
the help for the ``gen`` command. The full GN reference is also `available
|
||||||
online <https://gn.googlesource.com/gn/+/master/docs/reference.md>`_.
|
online <https://gn.googlesource.com/gn/+/refs/heads/main/docs/reference.md>`_.
|
||||||
|
|
||||||
GN has an autoformatter:
|
GN has an autoformatter:
|
||||||
``git ls-files '*.gn' '*.gni' | xargs llvm/utils/gn/gn.py format``
|
``git ls-files '*.gn' '*.gni' | xargs llvm/utils/gn/gn.py format``
|
||||||
|
@ -1422,8 +1422,8 @@ dialect.
|
|||||||
[GitHubLoweringTracking]: https://github.com/tensorflow/mlir/issues/303
|
[GitHubLoweringTracking]: https://github.com/tensorflow/mlir/issues/303
|
||||||
[GenSpirvUtilsPy]: https://github.com/llvm/llvm-project/blob/main/mlir/utils/spirv/gen_spirv_dialect.py
|
[GenSpirvUtilsPy]: https://github.com/llvm/llvm-project/blob/main/mlir/utils/spirv/gen_spirv_dialect.py
|
||||||
[CustomTypeAttrTutorial]: ../Tutorials/DefiningAttributesAndTypes.md
|
[CustomTypeAttrTutorial]: ../Tutorials/DefiningAttributesAndTypes.md
|
||||||
[VulkanExtensionPhysicalStorageBuffer]: https://github.com/KhronosGroup/SPIRV-Registry/blob/master/extensions/KHR/SPV_KHR_physical_storage_buffer.html
|
[VulkanExtensionPhysicalStorageBuffer]: https://github.com/KhronosGroup/SPIRV-Registry/blob/main/extensions/KHR/SPV_KHR_physical_storage_buffer.html
|
||||||
[VulkanExtensionVariablePointers]: https://github.com/KhronosGroup/SPIRV-Registry/blob/master/extensions/KHR/SPV_KHR_variable_pointers.html
|
[VulkanExtensionVariablePointers]: https://github.com/KhronosGroup/SPIRV-Registry/blob/main/extensions/KHR/SPV_KHR_variable_pointers.html
|
||||||
[VulkanSpirv]: https://renderdoc.org/vkspec_chunked/chap40.html#spirvenv
|
[VulkanSpirv]: https://renderdoc.org/vkspec_chunked/chap40.html#spirvenv
|
||||||
[VulkanShaderInterface]: https://renderdoc.org/vkspec_chunked/chap14.html#interfaces-resources
|
[VulkanShaderInterface]: https://renderdoc.org/vkspec_chunked/chap14.html#interfaces-resources
|
||||||
[VulkanShaderInterfaceStorageClass]: https://renderdoc.org/vkspec_chunked/chap15.html#interfaces
|
[VulkanShaderInterfaceStorageClass]: https://renderdoc.org/vkspec_chunked/chap15.html#interfaces
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
MLIR (Multi-Level IR) is a compiler intermediate representation with
|
MLIR (Multi-Level IR) is a compiler intermediate representation with
|
||||||
similarities to traditional three-address SSA representations (like
|
similarities to traditional three-address SSA representations (like
|
||||||
[LLVM IR](http://llvm.org/docs/LangRef.html) or
|
[LLVM IR](http://llvm.org/docs/LangRef.html) or
|
||||||
[SIL](https://github.com/apple/swift/blob/master/docs/SIL.rst)), but which
|
[SIL](https://github.com/apple/swift/blob/main/docs/SIL.rst)), but which
|
||||||
introduces notions from polyhedral loop optimization as first-class concepts.
|
introduces notions from polyhedral loop optimization as first-class concepts.
|
||||||
This hybrid design is optimized to represent, analyze, and transform high level
|
This hybrid design is optimized to represent, analyze, and transform high level
|
||||||
dataflow graphs as well as target-specific code generated for high performance
|
dataflow graphs as well as target-specific code generated for high performance
|
||||||
|
@ -13,7 +13,7 @@ about their consistency or readability.
|
|||||||
MLIR is a compiler intermediate representation with similarities to traditional
|
MLIR is a compiler intermediate representation with similarities to traditional
|
||||||
three-address SSA representations (like
|
three-address SSA representations (like
|
||||||
[LLVM IR](http://llvm.org/docs/LangRef.html) or
|
[LLVM IR](http://llvm.org/docs/LangRef.html) or
|
||||||
[SIL](https://github.com/apple/swift/blob/master/docs/SIL.rst)), but which
|
[SIL](https://github.com/apple/swift/blob/main/docs/SIL.rst)), but which
|
||||||
introduces notions from the polyhedral loop optimization works as first class
|
introduces notions from the polyhedral loop optimization works as first class
|
||||||
concepts. This hybrid design is optimized to represent, analyze, and transform
|
concepts. This hybrid design is optimized to represent, analyze, and transform
|
||||||
high level dataflow graphs as well as target-specific code generated for high
|
high level dataflow graphs as well as target-specific code generated for high
|
||||||
@ -195,10 +195,10 @@ represented in either form) but block arguments have several advantages:
|
|||||||
[landingpad instruction](http://llvm.org/docs/LangRef.html#landingpad-instruction)
|
[landingpad instruction](http://llvm.org/docs/LangRef.html#landingpad-instruction)
|
||||||
is a hack used to represent this. MLIR doesn't make use of this capability,
|
is a hack used to represent this. MLIR doesn't make use of this capability,
|
||||||
but SIL uses it extensively, e.g. in the
|
but SIL uses it extensively, e.g. in the
|
||||||
[switch_enum instruction](https://github.com/apple/swift/blob/master/docs/SIL.rst#switch-enum).
|
[switch_enum instruction](https://github.com/apple/swift/blob/main/docs/SIL.rst#switch-enum).
|
||||||
|
|
||||||
For more context, block arguments were previously used in the Swift
|
For more context, block arguments were previously used in the Swift
|
||||||
[SIL Intermediate Representation](https://github.com/apple/swift/blob/master/docs/SIL.rst),
|
[SIL Intermediate Representation](https://github.com/apple/swift/blob/main/docs/SIL.rst),
|
||||||
and described in
|
and described in
|
||||||
[a talk on YouTube](https://www.youtube.com/watch?v=Ntj8ab-5cvE). The section of
|
[a talk on YouTube](https://www.youtube.com/watch?v=Ntj8ab-5cvE). The section of
|
||||||
interest
|
interest
|
||||||
|
@ -102,7 +102,7 @@ GCC
|
|||||||
LLVM's
|
LLVM's
|
||||||
[DAG Combiner](https://github.com/llvm-mirror/llvm/blob/master/lib/CodeGen/SelectionDAG/DAGCombiner.cpp),
|
[DAG Combiner](https://github.com/llvm-mirror/llvm/blob/master/lib/CodeGen/SelectionDAG/DAGCombiner.cpp),
|
||||||
the Swift compiler's
|
the Swift compiler's
|
||||||
[SIL Combiner](https://github.com/apple/swift/tree/master/lib/SILOptimizer/SILCombiner),
|
[SIL Combiner](https://github.com/apple/swift/tree/main/lib/SILOptimizer/SILCombiner),
|
||||||
etc. These generally match one or more operations and produce zero or more
|
etc. These generally match one or more operations and produce zero or more
|
||||||
operations as a result. The LLVM
|
operations as a result. The LLVM
|
||||||
[Legalization](https://github.com/llvm/llvm-project/tree/main/llvm/lib/CodeGen/SelectionDAG)
|
[Legalization](https://github.com/llvm/llvm-project/tree/main/llvm/lib/CodeGen/SelectionDAG)
|
||||||
|
@ -13,8 +13,8 @@
|
|||||||
// pointed to here. However the following links contain more information about
|
// pointed to here. However the following links contain more information about
|
||||||
// ROCDL (ROCm-Device-Library)
|
// ROCDL (ROCm-Device-Library)
|
||||||
//
|
//
|
||||||
// https://github.com/RadeonOpenCompute/ROCm-Device-Libs/blob/master/doc/OCML.md
|
// https://github.com/RadeonOpenCompute/ROCm-Device-Libs/blob/amd-stg-open/doc/OCML.md
|
||||||
// https://github.com/RadeonOpenCompute/ROCm-Device-Libs/blob/master/doc/OCKL.md
|
// https://github.com/RadeonOpenCompute/ROCm-Device-Libs/blob/amd-stg-open/doc/OCKL.md
|
||||||
// https://llvm.org/docs/AMDGPUUsage.html
|
// https://llvm.org/docs/AMDGPUUsage.html
|
||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
//
|
//
|
||||||
// This file contains structs based on the LSP specification at
|
// This file contains structs based on the LSP specification at
|
||||||
// https://github.com/Microsoft/language-server-protocol/blob/master/protocol.md
|
// https://github.com/Microsoft/language-server-protocol/blob/main/protocol.md
|
||||||
//
|
//
|
||||||
// This is not meant to be a complete implementation, new interfaces are added
|
// This is not meant to be a complete implementation, new interfaces are added
|
||||||
// when they're needed.
|
// when they're needed.
|
||||||
|
@ -158,7 +158,7 @@ build:rbe --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
|
|||||||
# Platform flags:
|
# Platform flags:
|
||||||
# The toolchain container used for execution is defined in the target indicated
|
# The toolchain container used for execution is defined in the target indicated
|
||||||
# by "extra_execution_platforms", "host_platform" and "platforms".
|
# by "extra_execution_platforms", "host_platform" and "platforms".
|
||||||
# More about platforms: https://docs.bazel.build/versions/master/platforms.html
|
# More about platforms: https://docs.bazel.build/versions/main/platforms.html
|
||||||
build:rbe --extra_toolchains=@rbe_default//config:cc-toolchain
|
build:rbe --extra_toolchains=@rbe_default//config:cc-toolchain
|
||||||
build:rbe --extra_execution_platforms=@rbe_default//config:platform
|
build:rbe --extra_execution_platforms=@rbe_default//config:platform
|
||||||
build:rbe --host_platform=@rbe_default//config:platform
|
build:rbe --host_platform=@rbe_default//config:platform
|
||||||
|
@ -28,7 +28,7 @@ for adding this configuration.
|
|||||||
you don't have a checkout yet.
|
you don't have a checkout yet.
|
||||||
2. Install Bazel at the version indicated by [.bazelversion](./.bazelversion),
|
2. Install Bazel at the version indicated by [.bazelversion](./.bazelversion),
|
||||||
following the official instructions, if you don't have it installed yet:
|
following the official instructions, if you don't have it installed yet:
|
||||||
https://docs.bazel.build/versions/master/install.html.
|
https://docs.bazel.build/versions/main/install.html.
|
||||||
3. `cd utils/bazel`
|
3. `cd utils/bazel`
|
||||||
4. `bazel build --config=generic_clang @llvm-project//...` (if building on Unix
|
4. `bazel build --config=generic_clang @llvm-project//...` (if building on Unix
|
||||||
with Clang). `--config=generic_gcc` and `--config=msvc` are also available.
|
with Clang). `--config=generic_gcc` and `--config=msvc` are also available.
|
||||||
@ -45,7 +45,7 @@ build --config=generic_clang
|
|||||||
```
|
```
|
||||||
|
|
||||||
You can enable
|
You can enable
|
||||||
[disk caching](https://docs.bazel.build/versions/master/remote-caching.html#disk-cache),
|
[disk caching](https://docs.bazel.build/versions/main/remote-caching.html#disk-cache),
|
||||||
which will cache build results
|
which will cache build results
|
||||||
|
|
||||||
```.bazelrc
|
```.bazelrc
|
||||||
@ -53,7 +53,7 @@ build --disk_cache=~/.cache/bazel-disk-cache
|
|||||||
```
|
```
|
||||||
|
|
||||||
You can instruct Bazel to use a ramdisk for its sandboxing operations via
|
You can instruct Bazel to use a ramdisk for its sandboxing operations via
|
||||||
[--sandbox_base](https://docs.bazel.build/versions/master/command-line-reference.html#flag--sandbox_base),
|
[--sandbox_base](https://docs.bazel.build/versions/main/command-line-reference.html#flag--sandbox_base),
|
||||||
which can help avoid IO bottlenecks for the symlink stragegy used for
|
which can help avoid IO bottlenecks for the symlink stragegy used for
|
||||||
sandboxing. This is especially important with many inputs and many cores (see
|
sandboxing. This is especially important with many inputs and many cores (see
|
||||||
https://github.com/bazelbuild/bazel/issues/11868):
|
https://github.com/bazelbuild/bazel/issues/11868):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user