本文整理汇总了C++中Operand::brig方法的典型用法代码示例。如果您正苦于以下问题:C++ Operand::brig方法的具体用法?C++ Operand::brig怎么用?C++ Operand::brig使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Operand
的用法示例。
在下文中一共展示了Operand::brig方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: dispatchByItemKind_gen
RetType dispatchByItemKind_gen(Operand item,Visitor& vis) {
using namespace Brig;
switch(item.brig()->kind) {
case BRIG_OPERAND_ADDRESS: return vis(OperandAddress(item));
case BRIG_OPERAND_SIGNATURE_REF: return vis(OperandSignatureRef(item));
case BRIG_OPERAND_FBARRIER_REF: return vis(OperandFbarrierRef(item));
case BRIG_OPERAND_LABEL_REF: return vis(OperandLabelRef(item));
case BRIG_OPERAND_IMMED: return vis(OperandImmed(item));
case BRIG_OPERAND_ARGUMENT_LIST: return vis(OperandArgumentList(item));
case BRIG_OPERAND_ARGUMENT_REF: return vis(OperandArgumentRef(item));
case BRIG_OPERAND_REG: return vis(OperandReg(item));
case BRIG_OPERAND_FUNCTION_LIST: return vis(OperandFunctionList(item));
case BRIG_OPERAND_FUNCTION_REF: return vis(OperandFunctionRef(item));
case BRIG_OPERAND_REG_VECTOR: return vis(OperandRegVector(item));
case BRIG_OPERAND_WAVESIZE: return vis(OperandWavesize(item));
default: assert(false); break;
}
return RetType();
}