[PATCH] D15003: Interface to attach maximum function count from PGO to module as module flags.

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 2 11:56:18 PST 2015


use clang-format -style LLVM

David

On Wed, Dec 2, 2015 at 11:48 AM, Easwaran Raman <eraman at google.com> wrote:
> eraman added inline comments.
>
> ================
> Comment at: lib/IR/Module.cpp:502
> @@ +501,3 @@
> +      cast_or_null<ConstantAsMetadata>(getModuleFlag("MaxFunctionCount"));
> +  if (!Val) return None;
> +  return cast<ConstantInt>(Val->getValue())->getZExtValue();
> ----------------
> davidxl wrote:
>> Format -- put return in a new line.
> clang-format suggests I have the return on the same line.
>
>
> Repository:
>   rL LLVM
>
> http://reviews.llvm.org/D15003
>
>
>


More information about the llvm-commits mailing list