mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
Reapply 63765. Patches for clang and llvm-gcc to follow.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63812 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -426,13 +426,17 @@ ComplexPattern::ComplexPattern(Record *R) {
|
||||
// CodeGenIntrinsic Implementation
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
std::vector<CodeGenIntrinsic> llvm::LoadIntrinsics(const RecordKeeper &RC) {
|
||||
std::vector<CodeGenIntrinsic> llvm::LoadIntrinsics(const RecordKeeper &RC,
|
||||
bool TargetOnly) {
|
||||
std::vector<Record*> I = RC.getAllDerivedDefinitions("Intrinsic");
|
||||
|
||||
std::vector<CodeGenIntrinsic> Result;
|
||||
|
||||
for (unsigned i = 0, e = I.size(); i != e; ++i)
|
||||
Result.push_back(CodeGenIntrinsic(I[i]));
|
||||
for (unsigned i = 0, e = I.size(); i != e; ++i) {
|
||||
bool isTarget = I[i]->getValueAsBit("isTarget");
|
||||
if (isTarget == TargetOnly)
|
||||
Result.push_back(CodeGenIntrinsic(I[i]));
|
||||
}
|
||||
return Result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user