[PATCH] D91331: [NFC] Add hook for target to customize different legalization action according to the input type
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 12 16:36:31 PST 2020
craig.topper added a comment.
X86 uses Custom action based on the output type and checks the input type in the Custom handler. If the input type and output type are legal the custom handler returns the SDValue that was passed to the custom handler. That tells LegalizeDAG that no custom handling was required and it should be considered legal. Would that work for your case?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D91331/new/
https://reviews.llvm.org/D91331
More information about the llvm-commits
mailing list