Skip to content

Commit 3d4c270

Browse files
Removal of tsl-specific integral types.
PiperOrigin-RevId: 837903038
1 parent ceca86d commit 3d4c270

File tree

3 files changed

+4
-20
lines changed

3 files changed

+4
-20
lines changed

xla/backends/profiler/gpu/cupti_collector.cc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -285,11 +285,10 @@ class PerDeviceCollector {
285285
occ_stats.occupancy_pct);
286286
xevent.AddStatValue(*plane->GetOrCreateStatMetadata(
287287
GetStatTypeStr(StatType::kOccupancyMinGridSize)),
288-
static_cast<tsl::int32>(occ_stats.min_grid_size));
289-
xevent.AddStatValue(
290-
*plane->GetOrCreateStatMetadata(
291-
GetStatTypeStr(StatType::kOccupancySuggestedBlockSize)),
292-
static_cast<tsl::int32>(occ_stats.suggested_block_size));
288+
static_cast<int32_t>(occ_stats.min_grid_size));
289+
xevent.AddStatValue(*plane->GetOrCreateStatMetadata(GetStatTypeStr(
290+
StatType::kOccupancySuggestedBlockSize)),
291+
static_cast<int32_t>(occ_stats.suggested_block_size));
293292
xevent.AddStatValue(*plane->GetOrCreateStatMetadata(
294293
GetStatTypeStr(StatType::kKernelDetails)),
295294
*plane->GetOrCreateStatMetadata(ToXStat(

xla/hlo/translate/mhlo_to_hlo/mlir_hlo_to_hlo.cc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,6 @@ limitations under the License.
121121
#define DEBUG_TYPE "xla-translate"
122122

123123
using ::int64_t;
124-
using ::tsl::int16;
125-
using ::tsl::int32;
126-
using ::tsl::int8;
127-
using ::tsl::uint16;
128-
using ::tsl::uint32;
129-
using ::tsl::uint64;
130-
using ::tsl::uint8;
131124

132125
// All Module level and Function level attributes must be included in:
133126
// xla/mlir_hlo/utils/unregistered_attributes.h

xla/tsl/platform/types.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,6 @@ namespace tsl {
3030

3131
// Alias tsl::string to std::string.
3232
using string ABSL_DEPRECATE_AND_INLINE() = std::string;
33-
using uint8 ABSL_DEPRECATE_AND_INLINE() = uint8_t;
34-
using uint16 ABSL_DEPRECATE_AND_INLINE() = uint16_t;
35-
using uint32 ABSL_DEPRECATE_AND_INLINE() = uint32_t;
36-
using uint64 ABSL_DEPRECATE_AND_INLINE() = uint64_t;
37-
using int8 ABSL_DEPRECATE_AND_INLINE() = int8_t;
38-
using int16 ABSL_DEPRECATE_AND_INLINE() = int16_t;
39-
using int32 ABSL_DEPRECATE_AND_INLINE() = int32_t;
40-
using int64 ABSL_DEPRECATE_AND_INLINE() = int64_t;
4133

4234
// Note: This duplication is necessary because the inliner doesn't handle
4335
// macros very well and templates will cause it to replace int32_t with int.

0 commit comments

Comments
 (0)