Loom C API
Public Loom compiler C API
Toggle main menu visibility
Loading...
Searching...
No Matches
target/amdgpu/emit.h
Go to the documentation of this file.
1
// Copyright 2026 The IREE Authors
2
//
3
// Licensed under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
7
#ifndef LOOMC_TARGET_AMDGPU_EMIT_H_
8
#define LOOMC_TARGET_AMDGPU_EMIT_H_
9
10
#include "
loomc/emit.h
"
11
#include "
loomc/target/amdgpu/base.h
"
12
19
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
23
25
typedef
enum
loomc_amdgpu_runtime_global_flag_bits_e {
27
LOOMC_AMDGPU_RUNTIME_GLOBAL_NONE
= 0u,
28
30
LOOMC_AMDGPU_RUNTIME_GLOBAL_FEEDBACK_CONFIG
= 1u << 0,
31
33
LOOMC_AMDGPU_RUNTIME_GLOBAL_ASAN_CONFIG
= 1u << 1,
34
}
loomc_amdgpu_runtime_global_flag_bits_t
;
35
37
typedef
uint32_t
loomc_amdgpu_runtime_global_flags_t
;
38
40
#define LOOMC_AMDGPU_RUNTIME_GLOBALS_KNOWN \
41
((loomc_amdgpu_runtime_global_flags_t)(LOOMC_AMDGPU_RUNTIME_GLOBAL_FEEDBACK_CONFIG | \
42
LOOMC_AMDGPU_RUNTIME_GLOBAL_ASAN_CONFIG))
43
50
typedef
struct
loomc_amdgpu_emit_options_t
{
53
loomc_structure_type_t
type
;
54
56
loomc_host_size_t
structure_size
;
57
59
const
void
*
next
;
60
62
loomc_amdgpu_runtime_global_flags_t
runtime_globals
;
63
}
loomc_amdgpu_emit_options_t
;
64
65
#ifdef __cplusplus
66
}
// extern "C"
67
#endif
68
69
#endif
// LOOMC_TARGET_AMDGPU_EMIT_H_
loomc_host_size_t
size_t loomc_host_size_t
Host allocation and container size type.
Definition
base.h:45
loomc_structure_type_t
loomc_structure_type_t
Structure type values used by extensible public descriptors.
Definition
base.h:181
emit.h
Target artifact emission from prepared Loom modules.
loomc_amdgpu_emit_options_t
AMDGPU HSACO emission options.
Definition
target/amdgpu/emit.h:50
loomc_amdgpu_emit_options_t::runtime_globals
loomc_amdgpu_runtime_global_flags_t runtime_globals
AMDGPU runtime support globals to emit into the HSACO.
Definition
target/amdgpu/emit.h:62
loomc_amdgpu_emit_options_t::type
loomc_structure_type_t type
Structure type.
Definition
target/amdgpu/emit.h:53
loomc_amdgpu_emit_options_t::next
const void * next
Next invocation option extension.
Definition
target/amdgpu/emit.h:59
loomc_amdgpu_emit_options_t::structure_size
loomc_host_size_t structure_size
Size of this structure in bytes.
Definition
target/amdgpu/emit.h:56
base.h
AMDGPU target package identity and environment creation.
loomc_amdgpu_runtime_global_flags_t
uint32_t loomc_amdgpu_runtime_global_flags_t
Bitset of loomc_amdgpu_runtime_global_flag_bits_t values.
Definition
target/amdgpu/emit.h:37
loomc_amdgpu_runtime_global_flag_bits_t
loomc_amdgpu_runtime_global_flag_bits_t
AMDGPU runtime support global option bits.
Definition
target/amdgpu/emit.h:25
LOOMC_AMDGPU_RUNTIME_GLOBAL_FEEDBACK_CONFIG
@ LOOMC_AMDGPU_RUNTIME_GLOBAL_FEEDBACK_CONFIG
Emits the common kernel-to-runtime feedback-channel configuration global.
Definition
target/amdgpu/emit.h:30
LOOMC_AMDGPU_RUNTIME_GLOBAL_NONE
@ LOOMC_AMDGPU_RUNTIME_GLOBAL_NONE
No AMDGPU runtime support globals are emitted.
Definition
target/amdgpu/emit.h:27
LOOMC_AMDGPU_RUNTIME_GLOBAL_ASAN_CONFIG
@ LOOMC_AMDGPU_RUNTIME_GLOBAL_ASAN_CONFIG
Emits the AMDGPU ASAN configuration global consumed by access checks.
Definition
target/amdgpu/emit.h:33
loomc
target
amdgpu
emit.h
Generated by
1.17.0