本文整理汇总了C++中Vout::closed方法的典型用法代码示例。如果您正苦于以下问题:C++ Vout::closed方法的具体用法?C++ Vout::closed怎么用?C++ Vout::closed使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Vout
的用法示例。
在下文中一共展示了Vout::closed方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ifThenElse
void ifThenElse(Vout& v, ConditionCode cc, Vreg sf, Then thenBlock,
Else elseBlock) {
auto thenLabel = v.makeBlock();
auto elseLabel = v.makeBlock();
auto done = v.makeBlock();
v << jcc{cc, sf, {elseLabel, thenLabel}};
v = thenLabel;
thenBlock(v);
if (!v.closed()) v << jmp{done};
v = elseLabel;
elseBlock(v);
if (!v.closed()) v << jmp{done};
v = done;
}
示例2: ifZero
void ifZero(Vout& v, unsigned bit, Vreg r, Then thenBlock) {
auto then = v.makeBlock();
auto done = v.makeBlock();
v << tbcc{vixl::eq, bit, r, {done, then}};
v = then;
thenBlock(v);
if (!v.closed()) v << jmp{done};
v = done;
}
示例3: ifThen
void ifThen(Vout& v, ConditionCode cc, Vreg sf, Then thenBlock) {
auto then = v.makeBlock();
auto done = v.makeBlock();
v << jcc{cc, sf, {done, then}};
v = then;
thenBlock(v);
if (!v.closed()) v << jmp{done};
v = done;
}