forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged main:00c8da615923 into amd-gfx:1a36b82bb390
Local branch amd-gfx 1a36b82 Merged main:6250afe37fd1 into amd-gfx:d47138e5ab99 Remote branch main 00c8da6 [docs] Fix suggested darker command in coding standards (llvm#69860)
- Loading branch information
Showing
21 changed files
with
824 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
int main(void) { return 0; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Check that LLDB prints an error message containing the DWO_AT_comp_dir and | ||
# DW_AT_dwo_name when it can't find a DWO and the DW_AT_comp_dir and | ||
# DW_AT_dwo_name are relative. | ||
|
||
# -gsplit-dwarf is supported only on Linux. | ||
# REQUIRES: system-linux | ||
|
||
# Test the error message with a relative DW_AT_comp_dir and DW_AT_dwo_name. | ||
# Creating and compiling to %t.compdir makes it easy to remove the dwo files. | ||
# DW_AT_comp_dir should be "./a/b/", and DW_AT_dwo_name should be | ||
# "a.out-dwo-missing-error.dwo". | ||
# since %T is deprecated. | ||
# RUN: rm -rf %t.compdir/ | ||
# RUN: mkdir -p %t.compdir/a/b/ | ||
# RUN: cd %t.compdir/a/b/ | ||
# RUN: %clang_host %S/Inputs/dwo-missing-error.c -glldb -gdwarf-5 \ | ||
# RUN: -gsplit-dwarf -fdebug-prefix-map=%t.compdir=. -o a.out | ||
# RUN: rm *.dwo | ||
# RUN: %lldb a.out -s %s -o exit 2>&1 | FileCheck %s | ||
# RUN: cd - | ||
|
||
# Test the error message with an absolute DW_AT_comp_dir and DW_AT_dwo_name. | ||
# RUN: rm -rf %t.compdir/ | ||
# RUN: mkdir -p %t.compdir/a/b/ | ||
# RUN: %clang_host %S/Inputs/dwo-missing-error.c -glldb -gdwarf-5 \ | ||
# RUN: -gsplit-dwarf -o %t.compdir/a/b/a.out | ||
# RUN: rm %t.compdir/a/b/*.dwo | ||
# RUN: %lldb %t.compdir/a/b/a.out -s %s -o exit 2>&1 | FileCheck %s | ||
|
||
b main | ||
run | ||
|
||
fr v | ||
# CHECK: error: unable to locate .dwo debug file "{{.*}}a/b/a.out-dwo-missing-error.dwo" for skeleton DIE {{.*}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
//===- IndexToSPIRV.h - Index to SPIRV dialect conversion -------*- C++ -*-===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef MLIR_CONVERSION_INDEXTOSPIRV_INDEXTOSPIRV_H | ||
#define MLIR_CONVERSION_INDEXTOSPIRV_INDEXTOSPIRV_H | ||
|
||
#include "mlir/Pass/Pass.h" | ||
#include <memory> | ||
|
||
namespace mlir { | ||
class RewritePatternSet; | ||
class SPIRVTypeConverter; | ||
class Pass; | ||
|
||
#define GEN_PASS_DECL_CONVERTINDEXTOSPIRVPASS | ||
#include "mlir/Conversion/Passes.h.inc" | ||
|
||
namespace index { | ||
void populateIndexToSPIRVPatterns(SPIRVTypeConverter &converter, | ||
RewritePatternSet &patterns); | ||
std::unique_ptr<OperationPass<>> createConvertIndexToSPIRVPass(); | ||
} // namespace index | ||
} // namespace mlir | ||
|
||
#endif // MLIR_CONVERSION_INDEXTOSPIRV_INDEXTOSPIRV_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
add_mlir_conversion_library(MLIRIndexToSPIRV | ||
IndexToSPIRV.cpp | ||
|
||
ADDITIONAL_HEADER_DIRS | ||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Conversion/IndexToSPIRV | ||
|
||
DEPENDS | ||
MLIRConversionPassIncGen | ||
|
||
LINK_COMPONENTS | ||
Core | ||
|
||
LINK_LIBS PUBLIC | ||
MLIRIndexDialect | ||
MLIRSPIRVConversion | ||
MLIRSPIRVDialect | ||
) |
Oops, something went wrong.