search for: label_true

Displaying 3 results from an estimated 3 matches for "label_true".

2018 Nov 03
2
[RFC] Implementing asm-goto support in Clang/LLVM
...gt;, %transfer2), ...) to label > %normal or jump [label %transfer1, label %transfer2...] > > For example, the asm-goto call: > > int example1(…) { > … > asm goto("testl %0, %0; jne %l1;" :: > "r"(cond)::label_true); > … > label_true: > … > } > > is represented as: > > define i32 @example1(…) { > … > callbr void asm sideeffect "testl $0, $0; jne ${1:l}&quot...
2018 Nov 04
2
[RFC] Implementing asm-goto support in Clang/LLVM
...bel %transfer1, label %transfer2...] >>> >>> For example, the asm-goto call: >>> >>> int example1(…) { >>> … >>> asm goto("testl %0, %0; jne %l1;" :: >>> "r"(cond)::label_true); >>> … >>> label_true: >>> … >>> } >>> >>> is represented as: >>> >>> define i32 @example1(…) { >>> … >>>...
2008 Dec 07
0
boolean button helper
...But doing this with radio buttons typically takes 5 lines of html: 3 labels and 2 radio buttons. Here''s a simple boolean button helper that you can put in your custom form builder. class YourCustomFormBuilder < ActionView::Helpers::FormBuilder ... def boolean_buttons_for(method, label_true = "true", label_false = "false" ) @template.content_tag("div", @template.label(@object_name, method, method.to_s.humanize, :class => ''align'' ) + @template.radio_button( @object_name, method, true ) + @template.label( @object_n...