Skip to content

Commit a11c586

Browse files
committed
Fix gcc compilation
1 parent 8d5ed59 commit a11c586

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

ci/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
CXX: "{{ llvm_dir }}/bin/clang++"
2121

2222
- name: Build libirm (Debug)
23-
command: make all -j {{ ansible_processor_vcpus }}
23+
command: make all irm-tests -j {{ ansible_processor_vcpus }}
2424
args:
2525
chdir: "{{ debug_build_dir }}"
2626

@@ -42,7 +42,7 @@
4242
CXX: "{{ llvm_dir }}/bin/clang++"
4343

4444
- name: Build libirm (Release)
45-
command: make all -j {{ ansible_processor_vcpus }}
45+
command: make all irm-tests -j {{ ansible_processor_vcpus }}
4646
args:
4747
chdir: "{{ release_build_dir }}"
4848

include/irm/Mutations/CmpInstPredicateReplacement.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class CmpInstPredicateReplacement : public _CmpInstPredicateReplacementBase {
6464
llvm::CmpInst::TO) {} \
6565
};
6666

67-
#pragma mark - Negation
67+
/// Negation
6868

6969
// == / !=
7070
FCMP_PREDICATE_REPLACEMENT(FCMP_OEQ, FCMP_ONE)
@@ -104,7 +104,7 @@ ICMP_PREDICATE_REPLACEMENT(ICMP_ULT, ICMP_UGE)
104104
FCMP_PREDICATE_REPLACEMENT(FCMP_TRUE, FCMP_FALSE)
105105
FCMP_PREDICATE_REPLACEMENT(FCMP_FALSE, FCMP_TRUE)
106106

107-
#pragma mark - Boundary change
107+
/// Boundary change
108108

109109
/// > | >=
110110
FCMP_PREDICATE_REPLACEMENT(FCMP_UGT, FCMP_UGE)

include/irm/Mutations/ConstantReplacement.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,27 +28,27 @@ class ConstantReplacement : public IRMutation {
2828
public:
2929
ConstantReplacement(ConstValueConstructor *constConstructor,
3030
ConstValueConstructor *zeroConstConstructor, llvm::Value::ValueTy valueType,
31-
int operandPosition);
31+
unsigned operandPosition);
3232
bool canMutate(llvm::Instruction *instruction) override;
3333
void mutate(llvm::Instruction *instruction) override;
3434

3535
private:
3636
std::unique_ptr<ConstValueConstructor> constConstructor;
3737
std::unique_ptr<ConstValueConstructor> zeroConstConstructor;
3838
llvm::Value::ValueTy valueType;
39-
int operandPosition;
39+
unsigned operandPosition;
4040
};
4141

4242
class ConstIntReplacement : public ConstantReplacement {
4343
public:
44-
ConstIntReplacement(int value, int position)
44+
ConstIntReplacement(int value, unsigned position)
4545
: ConstantReplacement(new IntValueConstructor(value), new IntValueConstructor(0),
4646
llvm::Value::ConstantIntVal, position) {}
4747
};
4848

4949
class ConstFloatReplacement : public ConstantReplacement {
5050
public:
51-
ConstFloatReplacement(float value, int position)
51+
ConstFloatReplacement(float value, unsigned position)
5252
: ConstantReplacement(new FloatingValueConstructor(value), new FloatingValueConstructor(0),
5353
llvm::Value::ConstantFPVal, position) {}
5454
};

lib/ConstantReplacement.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ using namespace irm;
2121

2222
ConstantReplacement::ConstantReplacement(ConstValueConstructor *constConstructor,
2323
ConstValueConstructor *zeroConstConstructor,
24-
llvm::Value::ValueTy valueType, int operandPosition)
24+
llvm::Value::ValueTy valueType, unsigned operandPosition)
2525
: constConstructor(constConstructor), zeroConstConstructor(zeroConstConstructor),
2626
valueType(valueType), operandPosition(operandPosition) {}
2727

0 commit comments

Comments
 (0)