[llvm] Refactor `isLargeGlobalValue` from `TargetMachine` to `GlobalValue`
By moving `isLargeGlobalValue(...)` from `TargetMachine` to
`GlobalValue`, this commit moves the source of truth for the code model
from the flags to `GlobalValue` itself. This commit is needed for an
upcoming PR to support mixing large and small code model models.
Functions are **not** supported in this PR.
Co-authored-by: Alan Zhao <ayzhao@google.com>