@@ -268,7 +268,7 @@ Keyword argument `debuginfo` may be one of source (default) or none, to specify
268268"""
269269function code_llvm (io:: IO , @nospecialize (f), @nospecialize (types), raw:: Bool ,
270270 dump_module:: Bool = false , optimize:: Bool = true , debuginfo:: Symbol = :default )
271- d = _dump_function (f, types, false , false , ! raw, dump_module, :att , optimize, debuginfo, false )
271+ d = _dump_function (f, types, false , false , ! raw, dump_module, :intel , optimize, debuginfo, false )
272272 if highlighting[:llvm ] && get (io, :color , false ):: Bool
273273 print_llvm (io, d)
274274 else
@@ -281,28 +281,28 @@ code_llvm(@nospecialize(f), @nospecialize(types=Base.default_tt(f)); raw=false,
281281 code_llvm (stdout , f, types; raw, dump_module, optimize, debuginfo)
282282
283283"""
284- code_native([io=stdout,], f, types; syntax=:att , debuginfo=:default, binary=false, dump_module=true)
284+ code_native([io=stdout,], f, types; syntax=:intel , debuginfo=:default, binary=false, dump_module=true)
285285
286286Prints the native assembly instructions generated for running the method matching the given
287287generic function and type signature to `io`.
288288
289- * Set assembly syntax by setting `syntax` to `:att ` (default) for AT&T syntax or `:intel ` for Intel syntax.
289+ * Set assembly syntax by setting `syntax` to `:intel ` (default) for intel syntax or `:att ` for AT&T syntax.
290290* Specify verbosity of code comments by setting `debuginfo` to `:source` (default) or `:none`.
291291* If `binary` is `true`, also print the binary machine code for each instruction precedented by an abbreviated address.
292292* If `dump_module` is `false`, do not print metadata such as rodata or directives.
293293
294294See also: [`@code_native`](@ref), [`code_llvm`](@ref), [`code_typed`](@ref) and [`code_lowered`](@ref)
295295"""
296296function code_native (io:: IO , @nospecialize (f), @nospecialize (types= Base. default_tt (f));
297- dump_module:: Bool = true , syntax:: Symbol = :att , debuginfo:: Symbol = :default , binary:: Bool = false )
297+ dump_module:: Bool = true , syntax:: Symbol = :intel , debuginfo:: Symbol = :default , binary:: Bool = false )
298298 d = _dump_function (f, types, true , false , false , dump_module, syntax, true , debuginfo, binary)
299299 if highlighting[:native ] && get (io, :color , false ):: Bool
300300 print_native (io, d)
301301 else
302302 print (io, d)
303303 end
304304end
305- code_native (@nospecialize (f), @nospecialize (types= Base. default_tt (f)); dump_module:: Bool = true , syntax:: Symbol = :att , debuginfo:: Symbol = :default , binary:: Bool = false ) =
305+ code_native (@nospecialize (f), @nospecialize (types= Base. default_tt (f)); dump_module:: Bool = true , syntax:: Symbol = :intel , debuginfo:: Symbol = :default , binary:: Bool = false ) =
306306 code_native (stdout , f, types; dump_module, syntax, debuginfo, binary)
307307code_native (:: IO , :: Any , :: Symbol ) = error (" invalid code_native call" ) # resolve ambiguous call
308308
0 commit comments