Skip to content

Refactoring lib/IR/AutoUpgrade.cpp file. #30382

@aymanmusa

Description

@aymanmusa
Bugzilla Link 31034
Version trunk
OS All
CC @aymanmusa,@topperc,@RKSimon,@rotateright,@ZviRackover

Extended Description

llvm::UpgradeIntrinsicCall() function in lib/IR/AutoUpgrade.cpp source file checks if the IR includes an old intrinsic and replaces it with the upgraded IR.

The checks are implemented by a long "if else" sequence which some compilers complain about when it gets too long (For example, Microsoft C++ compiler will accept up to 127 if-else statements).

A refactoring to this "structure" should be considered as an effort to reduce the use of llvm x86 specific intrinsics is being initiated, and as a result many new cases will be added to the same control flow in the future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillacode-cleanupllvm:irobsoleteIssues with old (unsupported) versions of LLVM

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions