Lib/Target/instr/Instr.cpp
/**
 * Check if given tag is for the specified platform
 */
Check if given tag is for the specified platform
Check if given tag is for the specified platform
void check_instruction_tag_for_platform(InstrTag tag, bool for_vc4) {
  char const *platform = nullptr;
  if (!for_vc4) {
    if (tag >= VC4_ONLY && tag < END_VC4_ONLY) {
      platform = "v3d";
    }
  }
  if (platform != nullptr) {
    std::string msg = "Instruction tag ";
    msg << pretty_instr_tag(tag) << "(" + std::to_string(tag) + ")" << " can not be used on " << platform;
    fatal(msg);
  }
}
void check_instruction_tag_for_platform ( InstrTag tag , bool for_vc4 ) { char const * platform = nullptr ; if ( ! for_vc4 ) { if ( tag >= VC4_ONLY && tag < END_VC4_ONLY ) { platform = " " ; } } if ( platform != nullptr ) { std :: string msg = " " ; msg << pretty_instr_tag ( tag ) << " " + std :: to_string ( tag ) + " " << " " << platform ; fatal ( msg ) ; } }
Check if given tag is for the specified platform
Check if given tag is for the specified platform