[BPF] Triple::isBPF() utility method
authorEduard Zingerman <eddyz87@gmail.com>
Sat, 7 Jan 2023 06:35:25 +0000 (22:35 -0800)
committerYonghong Song <yhs@fb.com>
Sat, 7 Jan 2023 06:36:52 +0000 (22:36 -0800)
commit5702202ad6662898d1b222a05e0a6e9d2efb428f
tree55d7fcae4b71c8249d24ea10d7f7cb9e25bdc295
parent2c174a53d50bff301234c08d9ba130e1f0d22e28
[BPF] Triple::isBPF() utility method

Adds a utility method llvm::Triple::isBPF() aggregating Triple::bpfel
and Triple::bpfeb architectures. Similar to other predicates in this class.

Differential Revision: https://reviews.llvm.org/D140969
llvm/include/llvm/TargetParser/Triple.h