Changeset View
Changeset View
Standalone View
Standalone View
llvm/lib/Target/AMDGPU/SIInstrInfo.td
//===-- SIInstrInfo.td - SI Instruction Infos -------------*- tablegen -*--===// | //===-- SIInstrInfo.td - SI Instruction Infos -------------*- tablegen -*--===// | ||||
// | // | ||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||||
// See https://llvm.org/LICENSE.txt for license information. | // See https://llvm.org/LICENSE.txt for license information. | ||||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||||
// | // | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
def isWave32 : Predicate<"Subtarget->getWavefrontSize() == 32">, | def isWave32 : Predicate<"Subtarget->getWavefrontSize() == 32">, | ||||
AssemblerPredicate <"FeatureWavefrontSize32">; | AssemblerPredicate <(all_of FeatureWavefrontSize32)>; | ||||
def isWave64 : Predicate<"Subtarget->getWavefrontSize() == 64">, | def isWave64 : Predicate<"Subtarget->getWavefrontSize() == 64">, | ||||
AssemblerPredicate <"FeatureWavefrontSize64">; | AssemblerPredicate <(all_of FeatureWavefrontSize64)>; | ||||
def DisableInst : Predicate <"false">, AssemblerPredicate<"FeatureDisable">; | def DisableInst : Predicate <"false">, AssemblerPredicate<(all_of FeatureDisable)>; | ||||
class GCNPredicateControl : PredicateControl { | class GCNPredicateControl : PredicateControl { | ||||
Predicate SIAssemblerPredicate = isGFX6GFX7; | Predicate SIAssemblerPredicate = isGFX6GFX7; | ||||
Predicate VIAssemblerPredicate = isGFX8GFX9; | Predicate VIAssemblerPredicate = isGFX8GFX9; | ||||
} | } | ||||
// Execpt for the NONE field, this must be kept in sync with the | // Execpt for the NONE field, this must be kept in sync with the | ||||
// SIEncodingFamily enum in AMDGPUInstrInfo.cpp | // SIEncodingFamily enum in AMDGPUInstrInfo.cpp | ||||
▲ Show 20 Lines • Show All 2,538 Lines • Show Last 20 Lines |